diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2005-08-06 06:36:47 -0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2005-08-06 06:36:47 -0400 |
commit | e9a3e671c09d419f29710d8620ed916d3bf7d7ab (patch) | |
tree | 6ce4e75810fc0724d05c305fc6b517aba23598c0 /drivers/bluetooth/hci_usb.c | |
parent | dcc365d8f28d6a2332fa37e64d669858a8d017e8 (diff) |
[Bluetooth] Kill redundant NULL checks before kfree()
There's no need to check for NULL before calling kfree() on a pointer.
Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/bluetooth/hci_usb.c')
-rw-r--r-- | drivers/bluetooth/hci_usb.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/bluetooth/hci_usb.c b/drivers/bluetooth/hci_usb.c index e8bad41da37f..319871ca9f9f 100644 --- a/drivers/bluetooth/hci_usb.c +++ b/drivers/bluetooth/hci_usb.c | |||
@@ -390,10 +390,8 @@ static void hci_usb_unlink_urbs(struct hci_usb *husb) | |||
390 | urb = &_urb->urb; | 390 | urb = &_urb->urb; |
391 | BT_DBG("%s freeing _urb %p type %d urb %p", | 391 | BT_DBG("%s freeing _urb %p type %d urb %p", |
392 | husb->hdev->name, _urb, _urb->type, urb); | 392 | husb->hdev->name, _urb, _urb->type, urb); |
393 | if (urb->setup_packet) | 393 | kfree(urb->setup_packet); |
394 | kfree(urb->setup_packet); | 394 | kfree(urb->transfer_buffer); |
395 | if (urb->transfer_buffer) | ||
396 | kfree(urb->transfer_buffer); | ||
397 | _urb_free(_urb); | 395 | _urb_free(_urb); |
398 | } | 396 | } |
399 | 397 | ||