projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db5767a
)
staging: bcm: Remove redundant casting in Bcmchar.c
author
Sachin Kamat
<sachin.kamat@linaro.org>
Thu, 29 May 2014 11:35:20 +0000
(17:05 +0530)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 18 Jun 2014 21:09:49 +0000
(14:09 -0700)
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>
drivers/staging/bcm/Bcmchar.c
patch
|
blob
|
history
diff --git
a/drivers/staging/bcm/Bcmchar.c
b/drivers/staging/bcm/Bcmchar.c
index 606d5f5e92166041680b7eaf0f89c5a60fce8315..c1e01f7d64ba2d313f387cc0740b01b9feb53b50 100644
(file)
--- 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,