staging: wilc1000: fix whitespace checkpatch errors
v3 cover staging: wilc1000: fix whitespace checkpatch errors
Address the following checkpatch errors:
* ERROR: trailing whitespace
* ERROR: spaces prohibited around that '->' (ctx:WxV)
Change in v3:
* Further split the whitespace patch per distinct change Change in v2:
* Split single patch into two separate patches of distinct change
Eva Rachel Retuya (2):
staging: wilc1000: remove trailing whitespace
staging: wilc1000: remove spaces around '->'
drivers/staging/wilc1000/host_interface.c | 2 +- drivers/staging/wilc1000/linux_mon.c | 2 +- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
Signature · 1 line
1.9.1
PATCH v3 1/2 staging: wilc1000: remove trailing whitespace
Remove unnecessary whitespaces as pointed out by checkpatch:
ERROR: trailing whitespace
--- drivers/staging/wilc1000/host_interface.c | 2 +- drivers/staging/wilc1000/linux_mon.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/staging/wilc1000/host_interface.c +1 -1
@@ -3352,7 +3352,7 @@ static s32 host_int_get_assoc_res_info(struct wilc_vif *vif,PRINT_ER ("Failed to send association response config packet\n" );return -EINVAL ; } - + *pu32RcvdAssocRespInfoLen = wid.size;return result; }
drivers/staging/wilc1000/linux_mon.c +1 -1
@@ -302,7 +302,7 @@ struct net_device *WILC_WFI_init_mon_interface(const char *name, struct net_devistruct WILC_WFI_mon_priv *priv;/*If monitor interface is already initialized, return it*/ -if (wilc_wfi_mon) +if (wilc_wfi_mon)return wilc_wfi_mon; wilc_wfi_mon =alloc_etherdev (sizeof (struct WILC_WFI_mon_priv ));
Signature · 1 line
1.9.1
PATCH v3 2/2 staging: wilc1000: remove spaces around '->'
In reply to Eva Rachel RetuyaDelete the space around '->' as it is prohibited and breaks the code. Checkpatch found this issue.
ERROR: spaces prohibited around that '->'
--- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c +1 -1
@@ -2126,7 +2126,7 @@ static int start_ap(struct wiphy *wiphy, struct net_device *dev, priv =wiphy_priv (wiphy); vif =netdev_priv (dev); - wl = vif ->wilc; + wl = vif->wilc;PRINT_D (HOSTAPD_DBG ,"Starting ap\n" ); PRINT_D(HOSTAPD_DBG, "Interval = %d\n DTIM period = %d\n Head length = %zu Tail length = %zu\n",
Signature · 1 line
1.9.1