diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-02-27 15:29:43 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-03-20 17:49:59 -0500 |
commit | 80b6ca48321974a6566a1c9048ba34f60420bca6 (patch) | |
tree | a350e3cf6b794081c13c89d5b1913b2c1207570d /drivers/usb/media/ov511.c | |
parent | d54a5cb6484705f7808b337917cc7598f2f971c3 (diff) |
[PATCH] USB: kzalloc() conversion for rest of drivers/usb
Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/media/ov511.c')
-rw-r--r-- | drivers/usb/media/ov511.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/media/ov511.c b/drivers/usb/media/ov511.c index 1d887ec06080..da44579d6f29 100644 --- a/drivers/usb/media/ov511.c +++ b/drivers/usb/media/ov511.c | |||
@@ -5686,13 +5686,11 @@ ov51x_probe(struct usb_interface *intf, const struct usb_device_id *id) | |||
5686 | if (idesc->bInterfaceSubClass != 0x00) | 5686 | if (idesc->bInterfaceSubClass != 0x00) |
5687 | return -ENODEV; | 5687 | return -ENODEV; |
5688 | 5688 | ||
5689 | if ((ov = kmalloc(sizeof(*ov), GFP_KERNEL)) == NULL) { | 5689 | if ((ov = kzalloc(sizeof(*ov), GFP_KERNEL)) == NULL) { |
5690 | err("couldn't kmalloc ov struct"); | 5690 | err("couldn't kmalloc ov struct"); |
5691 | goto error_out; | 5691 | goto error_out; |
5692 | } | 5692 | } |
5693 | 5693 | ||
5694 | memset(ov, 0, sizeof(*ov)); | ||
5695 | |||
5696 | ov->dev = dev; | 5694 | ov->dev = dev; |
5697 | ov->iface = idesc->bInterfaceNumber; | 5695 | ov->iface = idesc->bInterfaceNumber; |
5698 | ov->led_policy = led; | 5696 | ov->led_policy = led; |