]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rbd: fix a couple warnings
authorSage Weil <sage@inktank.com>
Sun, 9 Jun 2013 15:40:39 +0000 (08:40 -0700)
committerSage Weil <sage@inktank.com>
Mon, 17 Jun 2013 02:51:00 +0000 (19:51 -0700)
commit60dffd0e708a0b4526519aa9d937506127b4c4e0
tree885202b14abc3ea878511b5f763141f41aa6f5db
parentc18e6f11a50a8b8e687328c6ef6cee1347472967
rbd: fix a couple warnings

gcc isn't quite smart enough and generates these warnings:

drivers/block/rbd.c: In function 'rbd_img_request_fill':
drivers/block/rbd.c:1266:22: warning: 'bio_list' may be used uninitialized in this function [-Wmaybe-uninitialized]
drivers/block/rbd.c:2186:14: note: 'bio_list' was declared here
drivers/block/rbd.c:2247:10: warning: 'pages' may be used uninitialized in this function [-Wmaybe-uninitialized]

even though they are initialized for their respective code paths.

Signed-off-by: Sage Weil <sage@inktank.com>
drivers/block/rbd.c