Bluetooth: btmrvl: Remove empty destruct cb
authorDavid Herrmann <dh.herrmann@googlemail.com>
Sat, 7 Jan 2012 14:47:10 +0000 (15:47 +0100)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 13 Feb 2012 15:01:23 +0000 (17:01 +0200)
The callback is optional and we provide an empty callback so remove it
entirely.

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>
drivers/bluetooth/btmrvl_main.c

index 6c3defa508454e1d76937abf9235b07fc6e880a8..995cf43f4bd25e96a10c8194e96fba74b689f4ca 100644 (file)
@@ -387,10 +387,6 @@ static int btmrvl_ioctl(struct hci_dev *hdev,
        return -ENOIOCTLCMD;
 }
 
-static void btmrvl_destruct(struct hci_dev *hdev)
-{
-}
-
 static int btmrvl_send_frame(struct sk_buff *skb)
 {
        struct hci_dev *hdev = (struct hci_dev *) skb->dev;
@@ -553,7 +549,6 @@ int btmrvl_register_hdev(struct btmrvl_private *priv)
        hdev->close = btmrvl_close;
        hdev->flush = btmrvl_flush;
        hdev->send = btmrvl_send_frame;
-       hdev->destruct = btmrvl_destruct;
        hdev->ioctl = btmrvl_ioctl;
        hdev->owner = THIS_MODULE;