mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 19:26:25 +00:00
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>
This commit is contained in:
parent
5990108cfc
commit
329ab1b3e6
1 changed files with 2 additions and 10 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue