]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf2c430c8c5c2ce89b8e2f36b7e247d81ad2e403c
tree0687553cb97d59eab96256e6785a980097e0c8df
parent59db5a9536aee7a3b6cf5818c1d5d7f01c602b8a
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