[PATCH] md/bitmap.c:bitmap_mask_state(): fix inconsequent NULL checking
authorAdrian Bunk <bunk@stusta.de>
Sat, 25 Mar 2006 11:07:51 +0000 (03:07 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sat, 25 Mar 2006 16:22:57 +0000 (08:22 -0800)
commit7e3176555003a45318010d9820eb5ad1abb596bf
tree7553a8e0c69ee9db1234b3523e153f3b2d655361
parent3cdc409c169c9f2155151eea82cb9868e4d62788
[PATCH] md/bitmap.c:bitmap_mask_state(): fix inconsequent NULL checking

We dereference bitmap both one line above and one line below this check
rendering this check quite useless.

Spotted by the Coverity checker.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Cc: Alasdair G Kergon <agk@redhat.com>
Cc: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/md/bitmap.c