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:
b17ea16
)
USB: Remove unnecessary casts of void ptr returning alloc function return values
author
Jesper Juhl
<jj@chaosbits.net>
Mon, 8 Nov 2010 23:10:52 +0000
(
00:10
+0100)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Wed, 1 Dec 2010 00:44:57 +0000
(16:44 -0800)
Hi,
The [vk][cmz]alloc(_node) family of functions return void pointers which
it's completely unnecessary/pointless to cast to other pointer types since
that happens implicitly.
This patch removes such casts from drivers/usb/
Signed-off-by: Jesper Juhl <jj@chaosbits.net>
drivers/usb/host/ehci-dbg.c
patch
|
blob
|
history
diff --git
a/drivers/usb/host/ehci-dbg.c
b/drivers/usb/host/ehci-dbg.c
index 86afdc73322f21787bf0d1e003acbe563f8f316e..a6bab7264c633c51b8e9f4f918ecda5812b8c722 100644
(file)
--- a/
drivers/usb/host/ehci-dbg.c
+++ b/
drivers/usb/host/ehci-dbg.c
@@
-879,7
+879,7
@@
static int fill_buffer(struct debug_buffer *buf)
int ret = 0;
if (!buf->output_buf)
- buf->output_buf =
(char *)
vmalloc(buf->alloc_size);
+ buf->output_buf = vmalloc(buf->alloc_size);
if (!buf->output_buf) {
ret = -ENOMEM;