diff options
author | Jesper Juhl <jesper.juhl@gmail.com> | 2005-11-07 04:01:35 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-07 10:54:06 -0500 |
commit | b2325fe1b7e5654fac9e9419423aa2c58a3dbd83 (patch) | |
tree | 934555b25ef9b33d3c4242b5dafb49ee8931e993 /arch/arm | |
parent | f99d49adf527fa6f7a9c42257fa76bca6b8df1e3 (diff) |
[PATCH] kfree cleanup: arch
This is the arch/ part of the big kfree cleanup patch.
Remove pointless checks for NULL prior to calling kfree() in arch/.
Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Acked-by: Grant Grundler <grundler@parisc-linux.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-integrator/impd1.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/mach-integrator/impd1.c b/arch/arm/mach-integrator/impd1.c index a1b153d1626c..a4bafee77a06 100644 --- a/arch/arm/mach-integrator/impd1.c +++ b/arch/arm/mach-integrator/impd1.c | |||
@@ -420,8 +420,7 @@ static int impd1_probe(struct lm_device *dev) | |||
420 | free_impd1: | 420 | free_impd1: |
421 | if (impd1 && impd1->base) | 421 | if (impd1 && impd1->base) |
422 | iounmap(impd1->base); | 422 | iounmap(impd1->base); |
423 | if (impd1) | 423 | kfree(impd1); |
424 | kfree(impd1); | ||
425 | release_lm: | 424 | release_lm: |
426 | release_mem_region(dev->resource.start, SZ_4K); | 425 | release_mem_region(dev->resource.start, SZ_4K); |
427 | return ret; | 426 | return ret; |