summaryrefslogtreecommitdiffstats
path: root/drivers/staging/csr/drv.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-07-20 15:59:12 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-07-20 15:59:12 -0700
commit55a27055b9ea5aabf8206ed6b7777c79f4e840c3 (patch)
tree29867609589a69e8a86e6e76b0885f0dbf4ce78f /drivers/staging/csr/drv.c
parent4becf12de1a4efefd28e057750e35f4ceb32dd1d (diff)
downloadop-kernel-dev-55a27055b9ea5aabf8206ed6b7777c79f4e840c3.zip
op-kernel-dev-55a27055b9ea5aabf8206ed6b7777c79f4e840c3.tar.gz
staging: csr: remove CsrPmemFree()
It's just a wrapper around kfree() so call that instead. Cc: Mikko Virkkilä <mikko.virkkila@bluegiga.com> Cc: Lauri Hintsala <Lauri.Hintsala@bluegiga.com> Cc: Riku Mettälä <riku.mettala@bluegiga.com> Cc: Veli-Pekka Peltola <veli-pekka.peltola@bluegiga.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/csr/drv.c')
-rw-r--r--drivers/staging/csr/drv.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/staging/csr/drv.c b/drivers/staging/csr/drv.c
index 36d9d53..6f5b3dd 100644
--- a/drivers/staging/csr/drv.c
+++ b/drivers/staging/csr/drv.c
@@ -1476,7 +1476,7 @@ unifi_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
if (pcli->snap_filter.count) {
pcli->snap_filter.count = 0;
- CsrPmemFree(pcli->snap_filter.protocols);
+ kfree(pcli->snap_filter.protocols);
}
if (snap_filter.count == 0) {
@@ -1492,7 +1492,7 @@ unifi_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
(void*)snap_filter.protocols,
snap_filter.count * sizeof(u16)))
{
- CsrPmemFree(pcli->snap_filter.protocols);
+ kfree(pcli->snap_filter.protocols);
r = -EFAULT;
goto out;
}
@@ -1938,7 +1938,7 @@ uf_sme_queue_message(unifi_priv_t *priv, u8 *buffer, int length)
if (logptr == NULL) {
unifi_error(priv, "Failed to allocate %d bytes for an SME message\n",
sizeof(udi_log_t) + length);
- CsrPmemFree(buffer);
+ kfree(buffer);
return -ENOMEM;
}
@@ -1956,7 +1956,7 @@ uf_sme_queue_message(unifi_priv_t *priv, u8 *buffer, int length)
down(&udi_mutex);
if (priv->sme_cli == NULL) {
kfree(logptr);
- CsrPmemFree(buffer);
+ kfree(buffer);
up(&udi_mutex);
unifi_info(priv, "Message for the SME dropped, SME has gone away\n");
return 0;
@@ -1971,7 +1971,7 @@ uf_sme_queue_message(unifi_priv_t *priv, u8 *buffer, int length)
up(&udi_mutex);
/* It is our responsibility to free the buffer allocated in build_packed_*() */
- CsrPmemFree(buffer);
+ kfree(buffer);
func_exit();
OpenPOWER on IntegriCloud