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/serial/ir-usb.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/serial/ir-usb.c')
-rw-r--r-- | drivers/usb/serial/ir-usb.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/serial/ir-usb.c b/drivers/usb/serial/ir-usb.c index a59010421444..426182ddc42a 100644 --- a/drivers/usb/serial/ir-usb.c +++ b/drivers/usb/serial/ir-usb.c | |||
@@ -184,10 +184,9 @@ static struct irda_class_desc *irda_usb_find_class_desc(struct usb_device *dev, | |||
184 | struct irda_class_desc *desc; | 184 | struct irda_class_desc *desc; |
185 | int ret; | 185 | int ret; |
186 | 186 | ||
187 | desc = kmalloc(sizeof (struct irda_class_desc), GFP_KERNEL); | 187 | desc = kzalloc(sizeof (struct irda_class_desc), GFP_KERNEL); |
188 | if (desc == NULL) | 188 | if (desc == NULL) |
189 | return NULL; | 189 | return NULL; |
190 | memset(desc, 0, sizeof(struct irda_class_desc)); | ||
191 | 190 | ||
192 | ret = usb_control_msg(dev, usb_rcvctrlpipe(dev,0), | 191 | ret = usb_control_msg(dev, usb_rcvctrlpipe(dev,0), |
193 | IU_REQ_GET_CLASS_DESC, | 192 | IU_REQ_GET_CLASS_DESC, |