mtip32xx: fix a smatch warning
authorAsai Thambi S P <asamymuthupa@micron.com>
Fri, 12 Apr 2013 18:27:17 +0000 (23:57 +0530)
committerJens Axboe <axboe@kernel.dk>
Sun, 14 Apr 2013 08:24:24 +0000 (10:24 +0200)
commit5a79e1ac21681907f8cc58e1f78fc40af5bbb890
treecbe99ab653516db10fef76e4aba6dc4fc919102e
parentcef5279735d3f6f0243e626963e6d5c84efade0a
mtip32xx: fix a smatch warning

Reported smatch warning:
drivers/block/mtip32xx/mtip32xx.c:4163 mtip_block_shutdown() warn: variable dereferenced before check 'dd->disk' (see line 4159)

dd->disk->disk_name accessed before the check if dd->disk is NULL. Fixed this
and access of dd->queue/dd->disk->queue.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Asai Thambi S P <asamymuthupa@micron.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/mtip32xx/mtip32xx.c