[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1434438549-5340-1-git-send-email-habdul@visteon.com>
Date: Tue, 16 Jun 2015 07:10:28 +0000
From: "Abdul, Hussain (H.)" <habdul@...teon.com>
To: "gregkh@...uxfoundation.org" <gregkh@...uxfoundation.org>
CC: "devel@...verdev.osuosl.org" <devel@...verdev.osuosl.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"Ravindran, Madhusudhanan (M.)" <mravindr@...teon.com>,
"Dighe, Niranjan (N.)" <ndighe@...teon.com>,
"johnny.kim@...el.com" <johnny.kim@...el.com>,
"rachel.kim@...el.com" <rachel.kim@...el.com>,
"dean.lee@...el.com" <dean.lee@...el.com>,
"chris.park@...el.com" <chris.park@...el.com>,
"linux-wireless@...r.kernel.org" <linux-wireless@...r.kernel.org>
Subject: [PATCH] Staging: wilc1000: Remove casting the values returned by
kmalloc()
From: Abdul Hussain <habdul@...teon.com>
This patch removes casting the values returned by memory allocation functions.
Signed-off-by: Abdul Hussain <habdul@...teon.com>
---
drivers/staging/wilc1000/linux_wlan.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/wilc1000/linux_wlan.c b/drivers/staging/wilc1000/linux_wlan.c
index 5f87148..c1e9272 100644
--- a/drivers/staging/wilc1000/linux_wlan.c
+++ b/drivers/staging/wilc1000/linux_wlan.c
@@ -580,7 +580,7 @@ static void linux_wlan_dbg(uint8_t *buff)
static void *linux_wlan_malloc_atomic(uint32_t sz)
{
char *pntr = NULL;
- pntr = (char *)kmalloc(sz, GFP_ATOMIC);
+ pntr = kmalloc(sz, GFP_ATOMIC);
PRINT_D(MEM_DBG, "Allocating %d bytes at address %p\n", sz, pntr);
return (void *)pntr;
@@ -588,7 +588,7 @@ static void *linux_wlan_malloc_atomic(uint32_t sz)
static void *linux_wlan_malloc(uint32_t sz)
{
char *pntr = NULL;
- pntr = (char *)kmalloc(sz, GFP_KERNEL);
+ pntr = kmalloc(sz, GFP_KERNEL);
PRINT_D(MEM_DBG, "Allocating %d bytes at address %p\n", sz, pntr);
return (void *)pntr;
}
@@ -605,7 +605,7 @@ void linux_wlan_free(void *vp)
static void *internal_alloc(uint32_t size, uint32_t flag)
{
char *pntr = NULL;
- pntr = (char *)kmalloc(size, flag);
+ pntr = kmalloc(size, flag);
PRINT_D(MEM_DBG, "Allocating %d bytes at address %p\n", size, pntr);
return (void *)pntr;
}
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists