]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: wilc1000: remove FREE_WILC_BUFFER()
authorRaphaël Beamonte <raphael.beamonte@gmail.com>
Wed, 19 Aug 2015 03:14:49 +0000 (23:14 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Sep 2015 01:24:28 +0000 (18:24 -0700)
It was just a wrapper around kfree(), so call that instead.

Signed-off-by: Raphaël Beamonte <raphael.beamonte@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_exported_buf.c

index c3f6a0a1c9adda09920d34c2ed9911e89baa36a4..44db496fb41847f0217723debbd4e7d6a825f1a4 100644 (file)
@@ -15,9 +15,6 @@
                return -ENOBUFS;        \
        }
 
-#define FREE_WILC_BUFFER(name) \
-       kfree(exported_ ## name);
-
 /*
  * Add necessary buffer pointers
  */
@@ -59,9 +56,9 @@ static int __init wilc_module_init(void)
 static void __exit wilc_module_deinit(void)
 {
        printk("wilc_module_deinit\n");
-       FREE_WILC_BUFFER(g_tx_buf)
-       FREE_WILC_BUFFER(g_rx_buf)
-       FREE_WILC_BUFFER(g_fw_buf)
+       kfree(exported_g_tx_buf);
+       kfree(exported_g_rx_buf);
+       kfree(exported_g_fw_buf);
 }
 
 MODULE_LICENSE("Dual BSD/GPL");