diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-12-03 12:05:16 -0500 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-12-03 13:34:18 -0500 |
commit | 329ab1b3e6ceac3f77ab400206a97cc402624259 (patch) | |
tree | 9997a159aa2c30dbbeed2b137f7d68d46aa341f2 /drivers/bluetooth | |
parent | 5990108cfcd3eb2d365c9ea6f82318be80c4e9d3 (diff) |
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: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r-- | drivers/bluetooth/hci_vhci.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/drivers/bluetooth/hci_vhci.c b/drivers/bluetooth/hci_vhci.c index ff02e901ab83..c1d389f2cbaf 100644 --- a/drivers/bluetooth/hci_vhci.c +++ b/drivers/bluetooth/hci_vhci.c | |||
@@ -41,8 +41,6 @@ | |||
41 | 41 | ||
42 | #define VERSION "1.3" | 42 | #define VERSION "1.3" |
43 | 43 | ||
44 | static int minor = MISC_DYNAMIC_MINOR; | ||
45 | |||
46 | struct vhci_data { | 44 | struct vhci_data { |
47 | struct hci_dev *hdev; | 45 | struct hci_dev *hdev; |
48 | 46 | ||
@@ -295,18 +293,12 @@ static int __init vhci_init(void) | |||
295 | { | 293 | { |
296 | BT_INFO("Virtual HCI driver ver %s", VERSION); | 294 | BT_INFO("Virtual HCI driver ver %s", VERSION); |
297 | 295 | ||
298 | if (misc_register(&vhci_miscdev) < 0) { | 296 | return misc_register(&vhci_miscdev); |
299 | BT_ERR("Can't register misc device with minor %d", minor); | ||
300 | return -EIO; | ||
301 | } | ||
302 | |||
303 | return 0; | ||
304 | } | 297 | } |
305 | 298 | ||
306 | static void __exit vhci_exit(void) | 299 | static void __exit vhci_exit(void) |
307 | { | 300 | { |
308 | if (misc_deregister(&vhci_miscdev) < 0) | 301 | misc_deregister(&vhci_miscdev); |
309 | BT_ERR("Can't unregister misc device with minor %d", minor); | ||
310 | } | 302 | } |
311 | 303 | ||
312 | module_init(vhci_init); | 304 | module_init(vhci_init); |