staging: wilc1000: set_channel: rename s32Error
authorChaehyun Lim <chaehyun.lim@gmail.com>
Fri, 2 Oct 2015 07:41:20 +0000 (16:41 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 Oct 2015 10:05:53 +0000 (12:05 +0200)
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/wilc_wfi_cfgoperations.c

index ebfcad49a1517579d116f90dc2a5635aaf51201a..8545c51a61ead100a66d3e0728428f6495420fd6 100644 (file)
@@ -663,7 +663,7 @@ static int set_channel(struct wiphy *wiphy,
 {
        u32 channelnum = 0;
        struct wilc_priv *priv;
-       int s32Error = 0;
+       int result = 0;
 
        priv = wiphy_priv(wiphy);
 
@@ -671,12 +671,12 @@ static int set_channel(struct wiphy *wiphy,
        PRINT_D(CFG80211_DBG, "Setting channel %d with frequency %d\n", channelnum, chandef->chan->center_freq);
 
        u8CurrChannel = channelnum;
-       s32Error   = host_int_set_mac_chnl_num(priv->hWILCWFIDrv, channelnum);
+       result = host_int_set_mac_chnl_num(priv->hWILCWFIDrv, channelnum);
 
-       if (s32Error != 0)
+       if (result != 0)
                PRINT_ER("Error in setting channel %d\n", channelnum);
 
-       return s32Error;
+       return result;
 }
 
 /**