projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
usb: avoid redundant cast of kmalloc() return value in OTi-6858 driver
[cascardo/linux.git]
/
drivers
/
usb
/
serial
/
oti6858.c
diff --git
a/drivers/usb/serial/oti6858.c
b/drivers/usb/serial/oti6858.c
index
64f3f66
..
d198611
100644
(file)
--- a/
drivers/usb/serial/oti6858.c
+++ b/
drivers/usb/serial/oti6858.c
@@
-1144,7
+1144,7
@@
static struct pl2303_buf *pl2303_buf_alloc(unsigned int size)
if (size == 0)
return NULL;
- pb =
(struct pl2303_buf *)
kmalloc(sizeof(struct pl2303_buf), GFP_KERNEL);
+ pb = kmalloc(sizeof(struct pl2303_buf), GFP_KERNEL);
if (pb == NULL)
return NULL;