staging: wilc1000: remove line over 80 char warnings in set_wiphy_params()
authorAjay Singh <ajay.kathat@microchip.com>
Mon, 23 Apr 2018 16:33:05 +0000 (22:03 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Apr 2018 13:54:13 +0000 (15:54 +0200)
Fix 'line over 80 character' issue reported by checkpatch.pl script in
set_wiphy_params(). Directly used the 'wiphy' pointer received as
function argument instead of using 'priv->dev->ieee80211_ptr->wiphy'.

Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c

index 402f12eeba41856327ec3f01b3d4b8f36cff6293..8bd821f46f2254f044eed7b4a7d348b198745e2f 100644 (file)
@@ -1185,20 +1185,20 @@ static int set_wiphy_params(struct wiphy *wiphy, u32 changed)
 
        if (changed & WIPHY_PARAM_RETRY_SHORT) {
                cfg_param_val.flag  |= RETRY_SHORT;
-               cfg_param_val.short_retry_limit = priv->dev->ieee80211_ptr->wiphy->retry_short;
+               cfg_param_val.short_retry_limit = wiphy->retry_short;
        }
        if (changed & WIPHY_PARAM_RETRY_LONG) {
                cfg_param_val.flag |= RETRY_LONG;
-               cfg_param_val.long_retry_limit = priv->dev->ieee80211_ptr->wiphy->retry_long;
+               cfg_param_val.long_retry_limit = wiphy->retry_long;
        }
        if (changed & WIPHY_PARAM_FRAG_THRESHOLD) {
                cfg_param_val.flag |= FRAG_THRESHOLD;
-               cfg_param_val.frag_threshold = priv->dev->ieee80211_ptr->wiphy->frag_threshold;
+               cfg_param_val.frag_threshold = wiphy->frag_threshold;
        }
 
        if (changed & WIPHY_PARAM_RTS_THRESHOLD) {
                cfg_param_val.flag |= RTS_THRESHOLD;
-               cfg_param_val.rts_threshold = priv->dev->ieee80211_ptr->wiphy->rts_threshold;
+               cfg_param_val.rts_threshold = wiphy->rts_threshold;
        }
 
        ret = wilc_hif_set_cfg(vif, &cfg_param_val);