summaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-12-03 18:05:16 +0100
committerMarcel Holtmann <marcel@holtmann.org>2009-12-03 19:34:18 +0100
commit329ab1b3e6ceac3f77ab400206a97cc402624259 (patch)
tree9997a159aa2c30dbbeed2b137f7d68d46aa341f2 /drivers/bluetooth
parent5990108cfcd3eb2d365c9ea6f82318be80c4e9d3 (diff)
downloadlinux-329ab1b3e6ceac3f77ab400206a97cc402624259.tar.bz2
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.c12
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 @@
#define VERSION "1.3"
-static int minor = MISC_DYNAMIC_MINOR;
-
struct vhci_data {
struct hci_dev *hdev;
@@ -295,18 +293,12 @@ static int __init vhci_init(void)
{
BT_INFO("Virtual HCI driver ver %s", VERSION);
- if (misc_register(&vhci_miscdev) < 0) {
- BT_ERR("Can't register misc device with minor %d", minor);
- return -EIO;
- }
-
- return 0;
+ return misc_register(&vhci_miscdev);
}
static void __exit vhci_exit(void)
{
- if (misc_deregister(&vhci_miscdev) < 0)
- BT_ERR("Can't unregister misc device with minor %d", minor);
+ misc_deregister(&vhci_miscdev);
}
module_init(vhci_init);