Casting value returned by kzalloc is useless.

Signed-off-by: Sachin Kamat <[email protected]>
---
 drivers/staging/bcm/Bcmchar.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/bcm/Bcmchar.c b/drivers/staging/bcm/Bcmchar.c
index 606d5f5e9216..c1e01f7d64ba 100644
--- a/drivers/staging/bcm/Bcmchar.c
+++ b/drivers/staging/bcm/Bcmchar.c
@@ -1648,7 +1648,7 @@ static int bcm_char_ioctl_flash2x_section_read(void 
__user *argp,
 
        ReadOffset = sFlash2xRead.offset;
        OutPutBuff = IoBuffer.OutputBuffer;
-       pReadBuff = (PCHAR)kzalloc(BuffSize , GFP_KERNEL);
+       pReadBuff = kzalloc(BuffSize , GFP_KERNEL);
 
        if (pReadBuff == NULL) {
                BCM_DEBUG_PRINT(Adapter, DBG_TYPE_PRINTK, 0, 0,
-- 
1.7.9.5

_______________________________________________
devel mailing list
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to