mirror of https://gitee.com/openkylin/linux.git
staging: bcm: Remove redundant casting in Bcmchar.c
Casting value returned by kzalloc is useless. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
db5767a3f9
commit
806c4879e0
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue