Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Jesper Juhl and committed by
Greg Kroah-Hartman
73f35c60 b17ea167

+1 -1
+1 -1
drivers/usb/host/ehci-dbg.c
··· 879 879 int ret = 0; 880 880 881 881 if (!buf->output_buf) 882 - buf->output_buf = (char *)vmalloc(buf->alloc_size); 882 + buf->output_buf = vmalloc(buf->alloc_size); 883 883 884 884 if (!buf->output_buf) { 885 885 ret = -ENOMEM;