diff options
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) |