Skip to content

Commit

Permalink
USB: Remove unnecessary casts of void ptr returning alloc function re…
Browse files Browse the repository at this point in the history
…turn values

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>
  • Loading branch information
Jesper Juhl authored and Greg Kroah-Hartman committed Dec 1, 2010
1 parent b17ea16 commit 73f35c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/host/ehci-dbg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 73f35c6

Please sign in to comment.