diff options
author | Jesper Juhl <jesper.juhl@gmail.com> | 2005-11-07 04:01:30 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-07 10:54:03 -0500 |
commit | 17fd682e544556a2a829e94383239c029bb21c5e (patch) | |
tree | 4b78bdd36efdbf9fb2c4c11382ed88898ceec48c /drivers/s390/net/iucv.c | |
parent | 3c7208f253571ee5f157b98f0e315b5172afe092 (diff) |
[PATCH] kfree cleanup: drivers/s390
This is the drivers/s390/ part of the big kfree cleanup patch.
Remove pointless checks for NULL prior to calling kfree() in drivers/s390/.
Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Acked-by: Cornelia Huck <cohuck@de.ibm.com>
Acked-by: Stefan Bader <Stefan.Bader@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/s390/net/iucv.c')
-rw-r--r-- | drivers/s390/net/iucv.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/drivers/s390/net/iucv.c b/drivers/s390/net/iucv.c index e08e74e16124..df7647c3c100 100644 --- a/drivers/s390/net/iucv.c +++ b/drivers/s390/net/iucv.c | |||
@@ -447,14 +447,10 @@ static void | |||
447 | iucv_exit(void) | 447 | iucv_exit(void) |
448 | { | 448 | { |
449 | iucv_retrieve_buffer(); | 449 | iucv_retrieve_buffer(); |
450 | if (iucv_external_int_buffer) { | 450 | kfree(iucv_external_int_buffer); |
451 | kfree(iucv_external_int_buffer); | 451 | iucv_external_int_buffer = NULL; |
452 | iucv_external_int_buffer = NULL; | 452 | kfree(iucv_param_pool); |
453 | } | 453 | iucv_param_pool = NULL; |
454 | if (iucv_param_pool) { | ||
455 | kfree(iucv_param_pool); | ||
456 | iucv_param_pool = NULL; | ||
457 | } | ||
458 | s390_root_dev_unregister(iucv_root); | 454 | s390_root_dev_unregister(iucv_root); |
459 | bus_unregister(&iucv_bus); | 455 | bus_unregister(&iucv_bus); |
460 | printk(KERN_INFO "IUCV lowlevel driver unloaded\n"); | 456 | printk(KERN_INFO "IUCV lowlevel driver unloaded\n"); |