Commit 329ab1b3 authored by Marcel Holtmann's avatar Marcel Holtmann

Bluetooth: Remove unused global minor variable

After the removal of the module parameter for setting the minor number,
this variable became unused. So just remove it.
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 5990108c
...@@ -41,8 +41,6 @@ ...@@ -41,8 +41,6 @@
#define VERSION "1.3" #define VERSION "1.3"
static int minor = MISC_DYNAMIC_MINOR;
struct vhci_data { struct vhci_data {
struct hci_dev *hdev; struct hci_dev *hdev;
...@@ -295,18 +293,12 @@ static int __init vhci_init(void) ...@@ -295,18 +293,12 @@ static int __init vhci_init(void)
{ {
BT_INFO("Virtual HCI driver ver %s", VERSION); BT_INFO("Virtual HCI driver ver %s", VERSION);
if (misc_register(&vhci_miscdev) < 0) { return misc_register(&vhci_miscdev);
BT_ERR("Can't register misc device with minor %d", minor);
return -EIO;
}
return 0;
} }
static void __exit vhci_exit(void) static void __exit vhci_exit(void)
{ {
if (misc_deregister(&vhci_miscdev) < 0) misc_deregister(&vhci_miscdev);
BT_ERR("Can't unregister misc device with minor %d", minor);
} }
module_init(vhci_init); module_init(vhci_init);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment