aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/media/usbvideo.c
diff options
context:
space:
mode:
authorJesper Juhl <jesper.juhl@gmail.com>2005-12-11 20:34:02 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2006-01-04 13:51:43 -0800
commit0e8eb0f06b21bc05c42bcdbb6b273fce59ba9689 (patch)
tree8f147c0484a46e4c4a488378a760da64c00057aa /drivers/usb/media/usbvideo.c
parent740a4282ed5cf0fbcad9a1a1660f24e1b5d11ed2 (diff)
[PATCH] USB: Remove unneeded kmalloc() return value casts
Remove kmalloc() return value casts that we don't need from drivers/usb/* Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/media/usbvideo.c')
-rw-r--r--drivers/usb/media/usbvideo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/media/usbvideo.c b/drivers/usb/media/usbvideo.c
index af0585906b2..4bd113325ef 100644
--- a/drivers/usb/media/usbvideo.c
+++ b/drivers/usb/media/usbvideo.c
@@ -725,7 +725,7 @@ int usbvideo_register(
/* Allocate user_data separately because of kmalloc's limits */
if (num_extra > 0) {
up->user_size = num_cams * num_extra;
- up->user_data = (char *) kmalloc(up->user_size, GFP_KERNEL);
+ up->user_data = kmalloc(up->user_size, GFP_KERNEL);
if (up->user_data == NULL) {
err("%s: Failed to allocate user_data (%d. bytes)",
__FUNCTION__, up->user_size);