staging: wilc1000: fix return type of host_int_del_station
authorChaehyun Lim <chaehyun.lim@gmail.com>
Fri, 6 Nov 2015 10:11:12 +0000 (19:11 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Nov 2015 04:02:47 +0000 (20:02 -0800)
This patch changes return type of host_int_del_station 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 08384b0954cceb0b6a3bfb99053de147b840b556..0729811dfeb253cb08a407a4313b214f1a9f21ce 100644 (file)
@@ -4576,9 +4576,9 @@ s32 host_int_add_station(struct host_if_drv *hif_drv,
        return result;
 }
 
-s32 host_int_del_station(struct host_if_drv *hif_drv, const u8 *pu8MacAddr)
+int host_int_del_station(struct host_if_drv *hif_drv, const u8 *pu8MacAddr)
 {
-       s32 result = 0;
+       int result = 0;
        struct host_if_msg msg;
        struct del_sta *pstrDelStationMsg = &msg.body.del_sta_info;
 
index 1a27b88facab7f392e1612ff01349328e03d6a38..76e7c2f015660d4d8a5dbe87745130daff6b0b6e 100644 (file)
@@ -382,7 +382,7 @@ s32 host_int_add_station(struct host_if_drv *hWFIDrv,
                         struct add_sta_param *pstrStaParams);
 s32 host_int_del_allstation(struct host_if_drv *hWFIDrv,
                            u8 pu8MacAddr[][ETH_ALEN]);
-s32 host_int_del_station(struct host_if_drv *hWFIDrv, const u8 *pu8MacAddr);
+int host_int_del_station(struct host_if_drv *hWFIDrv, const u8 *pu8MacAddr);
 s32 host_int_edit_station(struct host_if_drv *hWFIDrv,
                          struct add_sta_param *pstrStaParams);
 s32 host_int_set_power_mgmt(struct host_if_drv *hWFIDrv,