diff options
author | Devendra Naga <devendra.aaru@gmail.com> | 2012-09-13 05:30:30 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-09-13 23:22:24 -0400 |
commit | 3f45932720b7d4e1d409b3cc5cbc0bf18d67553b (patch) | |
tree | 2083def928b6c9ce4cbdd28d07a25f620e7d51c1 /drivers/staging/wlan-ng/p80211netdev.c | |
parent | d04600679ba08f40f5a3be597f44250b129af552 (diff) |
staging:wlan-ng: make wlan_unsetup void
this is because this function does a deinit job and most of the
deinit functions are expected to return void. Also this function
doesn't fail anywhere..
Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wlan-ng/p80211netdev.c')
-rw-r--r-- | drivers/staging/wlan-ng/p80211netdev.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/staging/wlan-ng/p80211netdev.c b/drivers/staging/wlan-ng/p80211netdev.c index 8afb1935e3f..6ca07e7df40 100644 --- a/drivers/staging/wlan-ng/p80211netdev.c +++ b/drivers/staging/wlan-ng/p80211netdev.c | |||
@@ -803,15 +803,13 @@ int wlan_setup(wlandevice_t *wlandev, struct device *physdev) | |||
803 | * Arguments: | 803 | * Arguments: |
804 | * wlandev ptr to the wlandev structure for the | 804 | * wlandev ptr to the wlandev structure for the |
805 | * interface. | 805 | * interface. |
806 | * Returns: | ||
807 | * zero on success, non-zero otherwise. | ||
808 | * Call Context: | 806 | * Call Context: |
809 | * Should be process thread. We'll assume it might be | 807 | * Should be process thread. We'll assume it might be |
810 | * interrupt though. When we add support for statically | 808 | * interrupt though. When we add support for statically |
811 | * compiled drivers, this function will be called in the | 809 | * compiled drivers, this function will be called in the |
812 | * context of the kernel startup code. | 810 | * context of the kernel startup code. |
813 | ----------------------------------------------------------------*/ | 811 | ----------------------------------------------------------------*/ |
814 | int wlan_unsetup(wlandevice_t *wlandev) | 812 | void wlan_unsetup(wlandevice_t *wlandev) |
815 | { | 813 | { |
816 | struct wireless_dev *wdev; | 814 | struct wireless_dev *wdev; |
817 | 815 | ||
@@ -824,8 +822,6 @@ int wlan_unsetup(wlandevice_t *wlandev) | |||
824 | free_netdev(wlandev->netdev); | 822 | free_netdev(wlandev->netdev); |
825 | wlandev->netdev = NULL; | 823 | wlandev->netdev = NULL; |
826 | } | 824 | } |
827 | |||
828 | return 0; | ||
829 | } | 825 | } |
830 | 826 | ||
831 | /*---------------------------------------------------------------- | 827 | /*---------------------------------------------------------------- |