summaryrefslogtreecommitdiff
path: root/net/bluetooth/coredump.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/bluetooth/coredump.c')
-rw-r--r--net/bluetooth/coredump.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/bluetooth/coredump.c b/net/bluetooth/coredump.c
index d2d2624ec708..ec97a4bab1c9 100644
--- a/net/bluetooth/coredump.c
+++ b/net/bluetooth/coredump.c
@@ -100,8 +100,7 @@ void hci_devcd_reset(struct hci_dev *hdev)
/* Call with hci_dev_lock only. */
static void hci_devcd_free(struct hci_dev *hdev)
{
- if (hdev->dump.head)
- vfree(hdev->dump.head);
+ vfree(hdev->dump.head);
hci_devcd_reset(hdev);
}