]> git.baikalelectronics.ru Git - kernel.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)
commit0adfe14879285cff4f0b62ca994aba658a1e6bca
tree43c7aef6fafb634bd86eabb345dd0227aa8e989a
parent6c4568a5843ef1294cc3c3545bf8e4dca52c153c
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