staging: wilc1000: fix return type of host_int_add_wep_key_bss_ap
authorChaehyun Lim <chaehyun.lim@gmail.com>
Tue, 27 Oct 2015 23:19:19 +0000 (08:19 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Oct 2015 23:50:45 +0000 (08:50 +0900)
This patch changes return type of host_int_add_wep_key_bss_ap from s32
to int. The result variable gets return value from wilc_mq_send that has
return type of int. It should be changed return type of this function as
well as data type of result variable.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/host_interface.c
drivers/staging/wilc1000/host_interface.h

index 28fef252508686e59f09c70ef1b74f0534d1cbd1..a29a3637c383552d8f373cbd1f473c6e14374dff 100644 (file)
@@ -3139,14 +3139,14 @@ int host_int_add_wep_key_bss_sta(struct host_if_drv *hif_drv,
        return result;
 }
 
-s32 host_int_add_wep_key_bss_ap(struct host_if_drv *hif_drv,
+int host_int_add_wep_key_bss_ap(struct host_if_drv *hif_drv,
                                const u8 *pu8WepKey,
                                u8 u8WepKeylen,
                                u8 u8Keyidx,
                                u8 u8mode,
                                enum AUTHTYPE tenuAuth_type)
 {
-       s32 result = 0;
+       int result = 0;
        struct host_if_msg msg;
        u8 i;
 
index 469e57913d175f819261b5063b3b9371a657d8b0..11d44bcb89f3fc7f5d0ea149c5334f2ba925d6e9 100644 (file)
@@ -419,7 +419,7 @@ int host_int_add_wep_key_bss_sta(struct host_if_drv *hif_drv,
  *  @date              28 Feb 2013
  *  @version           1.0
  */
-s32 host_int_add_wep_key_bss_ap(struct host_if_drv *hWFIDrv, const u8 *pu8WepKey, u8 u8WepKeylen, u8 u8Keyidx, u8 u8mode, enum AUTHTYPE tenuAuth_type);
+int host_int_add_wep_key_bss_ap(struct host_if_drv *hWFIDrv, const u8 *pu8WepKey, u8 u8WepKeylen, u8 u8Keyidx, u8 u8mode, enum AUTHTYPE tenuAuth_type);
 
 /**
  *  @brief              adds ptk Key
This page took 0.030913 seconds and 5 git commands to generate.