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>
return -ENOBUFS; \
}
-#define FREE_WILC_BUFFER(name) \
- kfree(exported_ ## name);
-
/*
* Add necessary buffer pointers
*/
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");