diff options
author | Deepak Saxena <dsaxena@plexity.net> | 2005-11-07 04:01:26 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-07 10:54:00 -0500 |
commit | 089b1dbbde28f0f641c20beabba28fa89ab4fab9 (patch) | |
tree | d95a59688897569f2aa875ec5a9576caaedfc2cc /drivers/bluetooth/bcm203x.c | |
parent | f5e3c2faa20615e900ab26bd957f898400435924 (diff) |
[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>
Diffstat (limited to 'drivers/bluetooth/bcm203x.c')
-rw-r--r-- | drivers/bluetooth/bcm203x.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/bluetooth/bcm203x.c b/drivers/bluetooth/bcm203x.c index 5fd3e4cb7525..8e7fb3551775 100644 --- a/drivers/bluetooth/bcm203x.c +++ b/drivers/bluetooth/bcm203x.c | |||
@@ -179,14 +179,12 @@ static int bcm203x_probe(struct usb_interface *intf, const struct usb_device_id | |||
179 | if (ignore || (intf->cur_altsetting->desc.bInterfaceNumber != 0)) | 179 | if (ignore || (intf->cur_altsetting->desc.bInterfaceNumber != 0)) |
180 | return -ENODEV; | 180 | return -ENODEV; |
181 | 181 | ||
182 | data = kmalloc(sizeof(*data), GFP_KERNEL); | 182 | data = kzalloc(sizeof(*data), GFP_KERNEL); |
183 | if (!data) { | 183 | if (!data) { |
184 | BT_ERR("Can't allocate memory for data structure"); | 184 | BT_ERR("Can't allocate memory for data structure"); |
185 | return -ENOMEM; | 185 | return -ENOMEM; |
186 | } | 186 | } |
187 | 187 | ||
188 | memset(data, 0, sizeof(*data)); | ||
189 | |||
190 | data->udev = udev; | 188 | data->udev = udev; |
191 | data->state = BCM203X_LOAD_MINIDRV; | 189 | data->state = BCM203X_LOAD_MINIDRV; |
192 | 190 | ||