aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/atm/speedtch.c
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2006-01-13 03:38:22 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2006-01-31 20:23:39 -0500
commit9a734efec36c991a74610c6c81d28d4222e1c02b (patch)
tree22af3801a3dc494085cd9e3218876320121a9986 /drivers/usb/atm/speedtch.c
parent0dfcd3e4444e88285ee7c199d0cbda21551d8c5d (diff)
[PATCH] USBATM: kzalloc conversion
Convert kmalloc + memset to kzalloc. Signed-off-by: Duncan Sands <baldrick@free.fr> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/atm/speedtch.c')
-rw-r--r--drivers/usb/atm/speedtch.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/atm/speedtch.c b/drivers/usb/atm/speedtch.c
index 1aca0b08f192..43ec758b92b5 100644
--- a/drivers/usb/atm/speedtch.c
+++ b/drivers/usb/atm/speedtch.c
@@ -715,7 +715,7 @@ static int speedtch_bind(struct usbatm_data *usbatm,
715 } 715 }
716 } 716 }
717 717
718 instance = kmalloc(sizeof(*instance), GFP_KERNEL); 718 instance = kzalloc(sizeof(*instance), GFP_KERNEL);
719 719
720 if (!instance) { 720 if (!instance) {
721 usb_err(usbatm, "%s: no memory for instance data!\n", __func__); 721 usb_err(usbatm, "%s: no memory for instance data!\n", __func__);
@@ -723,8 +723,6 @@ static int speedtch_bind(struct usbatm_data *usbatm,
723 goto fail_release; 723 goto fail_release;
724 } 724 }
725 725
726 memset(instance, 0, sizeof(struct speedtch_instance_data));
727
728 instance->usbatm = usbatm; 726 instance->usbatm = usbatm;
729 727
730 INIT_WORK(&instance->status_checker, (void *)speedtch_check_status, instance); 728 INIT_WORK(&instance->status_checker, (void *)speedtch_check_status, instance);