]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
lightnvm: fix "warning: ‘ret’ may be used uninitialized"
authorJeff Mahoney <jeffm@suse.com>
Fri, 6 May 2016 18:02:54 +0000 (20:02 +0200)
committerJens Axboe <axboe@fb.com>
Fri, 6 May 2016 18:51:10 +0000 (12:51 -0600)
commit57aac2f1be4a0711b7f24f7d367e8672ebaa3844
tree43c7aef6fafb634bd86eabb345dd0227aa8e989a
parent87c32077819c695cbc5ab00226a28010cd5806c3
lightnvm: fix "warning: ‘ret’ may be used uninitialized"

This fixes the following warnings:
drivers/lightnvm/sysblk.c:125:9: warning: ‘ret’ may be used
uninitialized in this function

drivers/lightnvm/sysblk.c:275:15: warning: ‘ret’ may be used
uninitialized in this function

In both cases, ret is only set from within a loop that may not be entered.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/lightnvm/sysblk.c