• Jens Axboe's avatar
    mtip32xx: fix two smatch warnings · c66bb3f0
    Jens Axboe authored
    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: default avatarDan Carpenter <dan.carpenter@oracle.com>
    Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
    c66bb3f0
mtip32xx.c 114 KB