drivers/block/cciss.c: fix check-after-use
authorAdrian Bunk <bunk@kernel.org>
Wed, 17 Oct 2007 06:29:26 +0000 (23:29 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 17 Oct 2007 15:42:55 +0000 (08:42 -0700)
commit5a9df732b6a547aa843e8655044db9573d7b4e71
tree0687553cb97d59eab96256e6785a980097e0c8df
parentb012d346c0e914f505d92f730ad1758f73e2953b
drivers/block/cciss.c: fix check-after-use

The Coverity checker spotted that we have already oops'ed if "disk"
was NULL.

Since "disk" being NULL seems impossible at this point this patch
removes the NULL check.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Acked-by: Mike Miller <mike.miller@hp.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/block/cciss.c