]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: wilc1000: rename s32Error in host_int_set_mac_chnl_num
authorChaehyun Lim <chaehyun.lim@gmail.com>
Fri, 2 Oct 2015 12:44:49 +0000 (21:44 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Oct 2015 08:42:39 +0000 (09:42 +0100)
This patch replaces s32Error with result to avoid camelcase.

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

index 65bd3250a5fa78c772c9e68239e73d6f56ab9e59..566e6185e6f1bc6be2755de471af14200911e150 100644 (file)
@@ -5317,7 +5317,7 @@ s32 host_int_get_rx_power_level(tstrWILC_WFIDrv *hWFIDrv, u8 *pu8RxPowerLevel,
  */
 int host_int_set_mac_chnl_num(tstrWILC_WFIDrv *hWFIDrv, u8 u8ChNum)
 {
-       int s32Error = 0;
+       int result = 0;
        tstrWILC_WFIDrv *pstrWFIDrv = (tstrWILC_WFIDrv *)hWFIDrv;
        struct host_if_msg msg;
 
@@ -5332,13 +5332,13 @@ int host_int_set_mac_chnl_num(tstrWILC_WFIDrv *hWFIDrv, u8 u8ChNum)
        msg.body.channel_info.u8SetChan = u8ChNum;
        msg.drvHandler = hWFIDrv;
 
-       s32Error = wilc_mq_send(&gMsgQHostIF, &msg, sizeof(struct host_if_msg));
-       if (s32Error) {
+       result = wilc_mq_send(&gMsgQHostIF, &msg, sizeof(struct host_if_msg));
+       if (result) {
                PRINT_ER("wilc mq send fail\n");
-               s32Error = -EINVAL;
+               result = -EINVAL;
        }
 
-       return s32Error;
+       return result;
 }