mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
[PATCH] bluetooth: kmalloc + memset -> kzalloc conversion
Signed-off-by: Deepak Saxena <dsaxena@plexity.net> Cc: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
f5e3c2faa2
commit
089b1dbbde
12 changed files with 12 additions and 31 deletions
|
@ -673,13 +673,11 @@ static int bfusb_probe(struct usb_interface *intf, const struct usb_device_id *i
|
|||
}
|
||||
|
||||
/* Initialize control structure and load firmware */
|
||||
if (!(bfusb = kmalloc(sizeof(struct bfusb), GFP_KERNEL))) {
|
||||
if (!(bfusb = kzalloc(sizeof(struct bfusb), GFP_KERNEL))) {
|
||||
BT_ERR("Can't allocate memory for control structure");
|
||||
goto done;
|
||||
}
|
||||
|
||||
memset(bfusb, 0, sizeof(struct bfusb));
|
||||
|
||||
bfusb->udev = udev;
|
||||
bfusb->bulk_in_ep = bulk_in_ep->desc.bEndpointAddress;
|
||||
bfusb->bulk_out_ep = bulk_out_ep->desc.bEndpointAddress;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue