Commit 3f459327 authored by Devendra Naga's avatar Devendra Naga Committed by Greg Kroah-Hartman

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: default avatarDevendra Naga <devendra.aaru@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d0460067
...@@ -803,15 +803,13 @@ int wlan_setup(wlandevice_t *wlandev, struct device *physdev) ...@@ -803,15 +803,13 @@ int wlan_setup(wlandevice_t *wlandev, struct device *physdev)
* Arguments: * Arguments:
* wlandev ptr to the wlandev structure for the * wlandev ptr to the wlandev structure for the
* interface. * interface.
* Returns:
* zero on success, non-zero otherwise.
* Call Context: * Call Context:
* Should be process thread. We'll assume it might be * Should be process thread. We'll assume it might be
* interrupt though. When we add support for statically * interrupt though. When we add support for statically
* compiled drivers, this function will be called in the * compiled drivers, this function will be called in the
* context of the kernel startup code. * context of the kernel startup code.
----------------------------------------------------------------*/ ----------------------------------------------------------------*/
int wlan_unsetup(wlandevice_t *wlandev) void wlan_unsetup(wlandevice_t *wlandev)
{ {
struct wireless_dev *wdev; struct wireless_dev *wdev;
...@@ -824,8 +822,6 @@ int wlan_unsetup(wlandevice_t *wlandev) ...@@ -824,8 +822,6 @@ int wlan_unsetup(wlandevice_t *wlandev)
free_netdev(wlandev->netdev); free_netdev(wlandev->netdev);
wlandev->netdev = NULL; wlandev->netdev = NULL;
} }
return 0;
} }
/*---------------------------------------------------------------- /*----------------------------------------------------------------
......
...@@ -235,7 +235,7 @@ int wep_encrypt(wlandevice_t *wlandev, u8 *buf, u8 *dst, u32 len, int keynum, ...@@ -235,7 +235,7 @@ int wep_encrypt(wlandevice_t *wlandev, u8 *buf, u8 *dst, u32 len, int keynum,
u8 *iv, u8 *icv); u8 *iv, u8 *icv);
int wlan_setup(wlandevice_t *wlandev, struct device *physdev); int wlan_setup(wlandevice_t *wlandev, struct device *physdev);
int wlan_unsetup(wlandevice_t *wlandev); void wlan_unsetup(wlandevice_t *wlandev);
int register_wlandev(wlandevice_t *wlandev); int register_wlandev(wlandevice_t *wlandev);
int unregister_wlandev(wlandevice_t *wlandev); int unregister_wlandev(wlandevice_t *wlandev);
void p80211netdev_rx(wlandevice_t *wlandev, struct sk_buff *skb); void p80211netdev_rx(wlandevice_t *wlandev, struct sk_buff *skb);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment