diff options
author | Paulius Zaleckas <paulius.zaleckas@teltonika.lt> | 2009-02-23 00:58:27 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-02-27 02:02:57 -0500 |
commit | e44578ea7c4f87462e05e0d0a2dd43b6beecd5f6 (patch) | |
tree | b75885c2326d9d1b0f7067084b83a200b8b4556c /drivers/net/usb/hso.c | |
parent | a6f26e4b0e1d63f466df7ae0fa35398316cf2dfc (diff) |
hso: remove hso_free_device()
There is really no need for function just doing simple kfree()
Signed-off-by: Paulius Zaleckas <paulius.zaleckas@teltonika.lt>
Cc: Denis Joseph Barrow <D.Barow@option.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb/hso.c')
-rw-r--r-- | drivers/net/usb/hso.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/drivers/net/usb/hso.c b/drivers/net/usb/hso.c index 0548edffd7cd..f49cc7b50c7e 100644 --- a/drivers/net/usb/hso.c +++ b/drivers/net/usb/hso.c | |||
@@ -2363,12 +2363,6 @@ exit: | |||
2363 | return -1; | 2363 | return -1; |
2364 | } | 2364 | } |
2365 | 2365 | ||
2366 | /* Frees a general hso device */ | ||
2367 | static void hso_free_device(struct hso_device *hso_dev) | ||
2368 | { | ||
2369 | kfree(hso_dev); | ||
2370 | } | ||
2371 | |||
2372 | /* Creates a general hso device */ | 2366 | /* Creates a general hso device */ |
2373 | static struct hso_device *hso_create_device(struct usb_interface *intf, | 2367 | static struct hso_device *hso_create_device(struct usb_interface *intf, |
2374 | int port_spec) | 2368 | int port_spec) |
@@ -2431,7 +2425,7 @@ static void hso_free_net_device(struct hso_device *hso_dev) | |||
2431 | free_netdev(hso_net->net); | 2425 | free_netdev(hso_net->net); |
2432 | } | 2426 | } |
2433 | 2427 | ||
2434 | hso_free_device(hso_dev); | 2428 | kfree(hso_dev); |
2435 | } | 2429 | } |
2436 | 2430 | ||
2437 | /* initialize the network interface */ | 2431 | /* initialize the network interface */ |
@@ -2645,7 +2639,7 @@ static void hso_free_serial_device(struct hso_device *hso_dev) | |||
2645 | } | 2639 | } |
2646 | hso_free_tiomget(serial); | 2640 | hso_free_tiomget(serial); |
2647 | kfree(serial); | 2641 | kfree(serial); |
2648 | hso_free_device(hso_dev); | 2642 | kfree(hso_dev); |
2649 | } | 2643 | } |
2650 | 2644 | ||
2651 | /* Creates a bulk AT channel */ | 2645 | /* Creates a bulk AT channel */ |
@@ -2726,7 +2720,7 @@ exit2: | |||
2726 | exit: | 2720 | exit: |
2727 | hso_free_tiomget(serial); | 2721 | hso_free_tiomget(serial); |
2728 | kfree(serial); | 2722 | kfree(serial); |
2729 | hso_free_device(hso_dev); | 2723 | kfree(hso_dev); |
2730 | return NULL; | 2724 | return NULL; |
2731 | } | 2725 | } |
2732 | 2726 | ||
@@ -2785,7 +2779,7 @@ exit: | |||
2785 | kfree(serial); | 2779 | kfree(serial); |
2786 | } | 2780 | } |
2787 | if (hso_dev) | 2781 | if (hso_dev) |
2788 | hso_free_device(hso_dev); | 2782 | kfree(hso_dev); |
2789 | return NULL; | 2783 | return NULL; |
2790 | 2784 | ||
2791 | } | 2785 | } |