From: Vivek Goyal Date: Mon, 15 Nov 2010 18:32:43 +0000 (+0100) Subject: block: fix amiga and atari floppy driver compile warning X-Git-Tag: v2.6.37-rc4~22^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e9bb2a071614f1d185740f31ac503ecba11d783;p=pandora-kernel.git block: fix amiga and atari floppy driver compile warning Geert, my crosstool don't produce warning below. I guess this has to do something with compiler version. - Geert noticed following warning during compilation. drivers/block/amiflop.c:1344: warning: ‘rq’ may be used uninitialized in this function drivers/block/ataflop.c:1402: warning: ‘rq’ may be used uninitialized in this function - Initialize rq to NULL to fix the warning. If we can't find a suitable request to dispatch, this function should return NULL instead of a possibly garbage pointer. - Cross compile tested only. Don't have hardware to test it. Reported-by: Geert Uytterhoeven Signed-off-by: Vivek Goyal Signed-off-by: Jens Axboe --- Reading git-diff-tree failed