dect
/
linux-2.6
Archived
13
0
Fork 0

USB: Remove unnecessary casts of void ptr returning alloc function return 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>
This commit is contained in:
Jesper Juhl 2010-11-09 00:10:52 +01:00 committed by Greg Kroah-Hartman
parent b17ea167c5
commit 73f35c60d5
1 changed files with 1 additions and 1 deletions

View File

@ -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;