diff options
author | Chaehyun Lim <chaehyun.lim@gmail.com> | 2016-01-05 23:06:57 +0900 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-02-03 15:17:27 -0800 |
commit | 1e995c10791f83f606b94b73c0f89ac29aea4824 (patch) | |
tree | b78ab75f768b01433526ad783bcb184c1eaf6ee0 /drivers/staging/wilc1000/host_interface.c | |
parent | 3bff53a880b94df68e95b64b49929578af1b007a (diff) | |
download | op-kernel-dev-1e995c10791f83f606b94b73c0f89ac29aea4824.zip op-kernel-dev-1e995c10791f83f606b94b73c0f89ac29aea4824.tar.gz |
staging: wilc1000: fix return type of wilc_init
This patch changes return type of wilc_init from s32 to int.
The error code as -ENOMEM or -EFAULT is returned in the wilc_init.
It is better to use return type of int in this function, not s32.
Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wilc1000/host_interface.c')
-rw-r--r-- | drivers/staging/wilc1000/host_interface.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c index 3de0fad..5801d41 100644 --- a/drivers/staging/wilc1000/host_interface.c +++ b/drivers/staging/wilc1000/host_interface.c @@ -3779,9 +3779,9 @@ static void GetPeriodicRSSI(unsigned long arg) mod_timer(&periodic_rssi, jiffies + msecs_to_jiffies(5000)); } -s32 wilc_init(struct net_device *dev, struct host_if_drv **hif_drv_handler) +int wilc_init(struct net_device *dev, struct host_if_drv **hif_drv_handler) { - s32 result = 0; + int result = 0; struct host_if_drv *hif_drv; struct wilc_vif *vif; struct wilc *wilc; |