]> 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>
Wed, 3 Jul 2013 22:32:50 +0000 (15:32 -0700)
commite976cad0f0dbe5440a4ca38e29e1f932d9319125
treef13168ba6c1936f2c9340e53ed2d05258d9b2261
parent667ca05cd9f02f0a345446abc362484c019d4d71
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