Skip to content

Commit

Permalink
Bluetooth: Remove unused global minor variable
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
holtmann committed Dec 3, 2009
1 parent 5990108 commit 329ab1b
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions drivers/bluetooth/hci_vhci.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@

#define VERSION "1.3"

static int minor = MISC_DYNAMIC_MINOR;

struct vhci_data {
struct hci_dev *hdev;

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 329ab1b

Please sign in to comment.