staging: wilc1000: change return type to 'void' for wilc_deinit_host_int()
authorAjay Singh <ajay.kathat@microchip.com>
Tue, 25 Sep 2018 06:23:19 +0000 (11:53 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Sep 2018 18:53:56 +0000 (20:53 +0200)
Cleanup patch to use 'void' return type for wilc_deinit_host_int(),
as its return value is not used in caller.

Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c
drivers/staging/wilc1000/wilc_wfi_cfgoperations.h

index 37c26d4..02a8846 100644 (file)
@@ -2175,7 +2175,7 @@ int wilc_init_host_int(struct net_device *net)
        return ret;
 }
 
-int wilc_deinit_host_int(struct net_device *net)
+void wilc_deinit_host_int(struct net_device *net)
 {
        int ret;
        struct wilc_priv *priv = wdev_priv(net->ieee80211_ptr);
@@ -2192,8 +2192,6 @@ int wilc_deinit_host_int(struct net_device *net)
 
        if (ret)
                netdev_err(net, "Error while deinitializing host interface\n");
-
-       return ret;
 }
 
 void wilc_free_wiphy(struct net_device *net)
index be412b6..1858f56 100644 (file)
@@ -11,7 +11,7 @@
 struct wireless_dev *wilc_create_wiphy(struct net_device *net,
                                       struct device *dev);
 void wilc_free_wiphy(struct net_device *net);
-int wilc_deinit_host_int(struct net_device *net);
+void wilc_deinit_host_int(struct net_device *net);
 int wilc_init_host_int(struct net_device *net);
 void wilc_wfi_monitor_rx(u8 *buff, u32 size);
 int wilc_wfi_deinit_mon_interface(void);