]> err.no Git - linux-2.6/commit
[PATCH] md: remove unneeded NULL checks before kfree
authorJesper Juhl <juhl-lkml@dif.dk>
Wed, 22 Jun 2005 00:17:30 +0000 (17:17 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 22 Jun 2005 02:07:48 +0000 (19:07 -0700)
commit990a8baf568ca1d0ae65e59783ff821794118d07
tree1fe187b2f119f7a9d96d56380b211f9ddb9f8390
parent8a5e9cf1d6626586ff08e49f400a006a9f0c3275
[PATCH] md: remove unneeded NULL checks before kfree

This patch removes some unneeded checks of pointers being NULL before
calling kfree() on them.  kfree() handles NULL pointers just fine, checking
first is pointless.

Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/md/dm-crypt.c
drivers/md/linear.c
drivers/md/md.c
drivers/md/multipath.c
drivers/md/raid0.c
drivers/md/raid1.c
drivers/md/raid10.c