Commit ac9ef65776845f3719e759368319570bf206ea2a
Committed by
Johan Hedberg
1 parent
010666a126
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
Bluetooth: bluecard-cs: Remove empty destruct cb
The destruct callback is optional and we provide an empty callback so remove it entirely to avoid unnecessary code. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com> Acked-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Showing 1 changed file with 0 additions and 6 deletions Side-by-side Diff
drivers/bluetooth/bluecard_cs.c
... | ... | @@ -691,11 +691,6 @@ |
691 | 691 | } |
692 | 692 | |
693 | 693 | |
694 | -static void bluecard_hci_destruct(struct hci_dev *hdev) | |
695 | -{ | |
696 | -} | |
697 | - | |
698 | - | |
699 | 694 | static int bluecard_hci_ioctl(struct hci_dev *hdev, unsigned int cmd, unsigned long arg) |
700 | 695 | { |
701 | 696 | return -ENOIOCTLCMD; |
... | ... | @@ -741,7 +736,6 @@ |
741 | 736 | hdev->close = bluecard_hci_close; |
742 | 737 | hdev->flush = bluecard_hci_flush; |
743 | 738 | hdev->send = bluecard_hci_send_frame; |
744 | - hdev->destruct = bluecard_hci_destruct; | |
745 | 739 | hdev->ioctl = bluecard_hci_ioctl; |
746 | 740 | |
747 | 741 | hdev->owner = THIS_MODULE; |