diff options
author | Jesper Juhl <juhl-lkml@dif.dk> | 2005-06-21 20:17:30 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-21 22:07:48 -0400 |
commit | 990a8baf568ca1d0ae65e59783ff821794118d07 (patch) | |
tree | 1fe187b2f119f7a9d96d56380b211f9ddb9f8390 /drivers/md/multipath.c | |
parent | 8a5e9cf1d6626586ff08e49f400a006a9f0c3275 (diff) |
[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>
Diffstat (limited to 'drivers/md/multipath.c')
-rw-r--r-- | drivers/md/multipath.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/md/multipath.c b/drivers/md/multipath.c index 2ae2d709cb15..2d2ca7fa0265 100644 --- a/drivers/md/multipath.c +++ b/drivers/md/multipath.c | |||
@@ -533,8 +533,7 @@ static int multipath_run (mddev_t *mddev) | |||
533 | out_free_conf: | 533 | out_free_conf: |
534 | if (conf->pool) | 534 | if (conf->pool) |
535 | mempool_destroy(conf->pool); | 535 | mempool_destroy(conf->pool); |
536 | if (conf->multipaths) | 536 | kfree(conf->multipaths); |
537 | kfree(conf->multipaths); | ||
538 | kfree(conf); | 537 | kfree(conf); |
539 | mddev->private = NULL; | 538 | mddev->private = NULL; |
540 | out: | 539 | out: |