From: Jens Axboe Date: Thu, 4 Apr 2013 07:03:41 +0000 (+0200) Subject: mtip32xx: fix two smatch warnings X-Git-Tag: v3.9-rc7~34^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c66bb3f075cfe2d17b2427e96e043622db02759c;p=pandora-kernel.git mtip32xx: fix two smatch warnings Dan reports: New smatch warnings: drivers/block/mtip32xx/mtip32xx.c:2728 show_device_status() warn: variable dereferenced before check 'dd' (see line 2727) drivers/block/mtip32xx/mtip32xx.c:2758 show_device_status() warn: variable dereferenced before check 'dd' (see line 2757) which are checking if dd == NULL, in a list_for_each_entry() type loop. Get rid of the check, dd can never be NULL here. Reported-by: Dan Carpenter Signed-off-by: Jens Axboe --- Reading git-diff-tree failed