linux/drivers/lightnvm
Jeff Mahoney 57aac2f1be 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>
2016-05-06 12:51:10 -06:00
..
core.c lightnvm: add a bitmap of luns 2016-03-18 18:10:38 -07:00
gennvm.c lightnvm: do not load L2P table if not supported 2016-03-18 18:10:38 -07:00
gennvm.h lightnvm: specify target's logical address area 2016-03-18 18:10:37 -07:00
Kconfig lightnvm: do not compile in debugging by default 2015-12-07 09:14:20 -07:00
Makefile lightnvm: core on-disk initialization 2016-01-12 08:21:18 -07:00
rrpc.c lightnvm: add a bitmap of luns 2016-03-18 18:10:38 -07:00
rrpc.h lightnvm: specify target's logical address area 2016-03-18 18:10:37 -07:00
sysblk.c lightnvm: fix "warning: ‘ret’ may be used uninitialized" 2016-05-06 12:51:10 -06:00