Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 806c4879 authored by Sachin Kamat's avatar Sachin Kamat Committed by Greg Kroah-Hartman
Browse files

staging: bcm: Remove redundant casting in Bcmchar.c



Casting value returned by kzalloc is useless.

Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent db5767a3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,