From: Chaehyun Lim Date: Thu, 11 Feb 2016 04:46:24 +0000 (+0900) Subject: staging: wilc1000: remove initialization code of counter variable X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f752fa468ad14fb772ff8611c649e8224c3796fd;p=linux-beck.git staging: wilc1000: remove initialization code of counter variable There is no need to set to 0 for counter variable before entering next for-loop statement because counter is initialized again in for-loop statement, so just remove it. Signed-off-by: Chaehyun Lim Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/wilc1000/wilc_wlan.c b/drivers/staging/wilc1000/wilc_wlan.c index f3140e0f284e..c6bfec39864c 100644 --- a/drivers/staging/wilc1000/wilc_wlan.c +++ b/drivers/staging/wilc1000/wilc_wlan.c @@ -1365,7 +1365,6 @@ int wilc_send_config_pkt(struct wilc_vif *vif, u8 mode, struct wid *wids, break; } } - counter = 0; for (counter = 0; counter < count; counter++) { wids[counter].size = wilc_wlan_cfg_get_val( wids[counter].id,