diff options
author | Jesper Juhl <jesper.juhl@gmail.com> | 2005-11-07 04:01:29 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-07 10:54:02 -0500 |
commit | 735d5661d5c5f023a78fbe68e771e261040ff1b7 (patch) | |
tree | b9865f0322d8e74661639f5f33b1897b23004659 /drivers/char/istallion.c | |
parent | fa671646f61182cd18234461a6e65f50c6558695 (diff) |
[PATCH] kfree cleanup: drivers/char
This is the drivers/char/ part of the big kfree cleanup patch.
Remove pointless checks for NULL prior to calling kfree() in drivers/char/.
Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/char/istallion.c')
-rw-r--r-- | drivers/char/istallion.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/char/istallion.c b/drivers/char/istallion.c index e3ddbdb85a2f..ce3bc0d45f1f 100644 --- a/drivers/char/istallion.c +++ b/drivers/char/istallion.c | |||
@@ -860,10 +860,9 @@ static void __exit istallion_module_exit(void) | |||
860 | if ((i = unregister_chrdev(STL_SIOMEMMAJOR, "staliomem"))) | 860 | if ((i = unregister_chrdev(STL_SIOMEMMAJOR, "staliomem"))) |
861 | printk("STALLION: failed to un-register serial memory device, " | 861 | printk("STALLION: failed to un-register serial memory device, " |
862 | "errno=%d\n", -i); | 862 | "errno=%d\n", -i); |
863 | if (stli_tmpwritebuf != (char *) NULL) | 863 | |
864 | kfree(stli_tmpwritebuf); | 864 | kfree(stli_tmpwritebuf); |
865 | if (stli_txcookbuf != (char *) NULL) | 865 | kfree(stli_txcookbuf); |
866 | kfree(stli_txcookbuf); | ||
867 | 866 | ||
868 | for (i = 0; (i < stli_nrbrds); i++) { | 867 | for (i = 0; (i < stli_nrbrds); i++) { |
869 | if ((brdp = stli_brds[i]) == (stlibrd_t *) NULL) | 868 | if ((brdp = stli_brds[i]) == (stlibrd_t *) NULL) |