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:
3871c38
)
driver: isdn: capi: remove cast for kmalloc return value
author
Zhang Yanfei
<
[email protected]
>
Mon, 11 Mar 2013 19:13:47 +0000
(19:13 +0000)
committer
David S. Miller
<
[email protected]
>
Tue, 12 Mar 2013 15:40:54 +0000
(11:40 -0400)
remove cast for kmalloc return value.
Signed-off-by: Zhang Yanfei <
[email protected]
>
Cc: Andrew Morton <
[email protected]
>
Cc: Karsten Keil <
[email protected]
>
Cc:
[email protected]
Signed-off-by: David S. Miller <
[email protected]
>
drivers/isdn/capi/capidrv.c
patch
|
blob
|
history
diff --git
a/drivers/isdn/capi/capidrv.c
b/drivers/isdn/capi/capidrv.c
index 832bc807ed20ec38a565578b209ec363190ad31f..cc9f1927a322ec9d8aa1a5a05cad351711d9f861 100644
(file)
--- a/
drivers/isdn/capi/capidrv.c
+++ b/
drivers/isdn/capi/capidrv.c
@@
-469,8
+469,7
@@
static int capidrv_add_ack(struct capidrv_ncci *nccip,
{
struct ncci_datahandle_queue *n, **pp;
- n = (struct ncci_datahandle_queue *)
- kmalloc(sizeof(struct ncci_datahandle_queue), GFP_ATOMIC);
+ n = kmalloc(sizeof(struct ncci_datahandle_queue), GFP_ATOMIC);
if (!n) {
printk(KERN_ERR "capidrv: kmalloc ncci_datahandle failed\n");
return -1;