diff options
author | Paulius Zaleckas <paulius.zaleckas@teltonika.lt> | 2009-02-23 05:58:27 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-02-26 23:02:57 -0800 |
commit | e44578ea7c4f87462e05e0d0a2dd43b6beecd5f6 (patch) | |
tree | b75885c2326d9d1b0f7067084b83a200b8b4556c /drivers/net/usb | |
parent | a6f26e4b0e1d63f466df7ae0fa35398316cf2dfc (diff) | |
download | linux-3.10-e44578ea7c4f87462e05e0d0a2dd43b6beecd5f6.tar.gz linux-3.10-e44578ea7c4f87462e05e0d0a2dd43b6beecd5f6.tar.bz2 linux-3.10-e44578ea7c4f87462e05e0d0a2dd43b6beecd5f6.zip |
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')
-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 0548edffd7c..f49cc7b50c7 100644 --- a/drivers/net/usb/hso.c +++ b/drivers/net/usb/hso.c @@ -2363,12 +2363,6 @@ exit: return -1; } -/* Frees a general hso device */ -static void hso_free_device(struct hso_device *hso_dev) -{ - kfree(hso_dev); -} - /* Creates a general hso device */ static struct hso_device *hso_create_device(struct usb_interface *intf, int port_spec) @@ -2431,7 +2425,7 @@ static void hso_free_net_device(struct hso_device *hso_dev) free_netdev(hso_net->net); } - hso_free_device(hso_dev); + kfree(hso_dev); } /* initialize the network interface */ @@ -2645,7 +2639,7 @@ static void hso_free_serial_device(struct hso_device *hso_dev) } hso_free_tiomget(serial); kfree(serial); - hso_free_device(hso_dev); + kfree(hso_dev); } /* Creates a bulk AT channel */ @@ -2726,7 +2720,7 @@ exit2: exit: hso_free_tiomget(serial); kfree(serial); - hso_free_device(hso_dev); + kfree(hso_dev); return NULL; } @@ -2785,7 +2779,7 @@ exit: kfree(serial); } if (hso_dev) - hso_free_device(hso_dev); + kfree(hso_dev); return NULL; } |