Search Linux Wireless

[PATCH] ocb: remove unnecessary variable increments

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The arg[c|v] variables are incremented even if
they are not used afterwards. Fix that.

Signed-off-by: Ola Olsson <ola.olsson@xxxxxxxxxxxxxx>
---
 ocb.c |    3 ---
 1 file changed, 3 deletions(-)

diff --git a/ocb.c b/ocb.c
index 767eb82..b43fba8 100644
--- a/ocb.c
+++ b/ocb.c
@@ -33,7 +33,6 @@ static int join_ocb(struct nl80211_state *state,
 
 	NLA_PUT_U32(msg, NL80211_ATTR_WIPHY_FREQ, freq);
 	argv++;
-	argc--;
 
 	/* channel width */
 	for (i = 0; i < ARRAY_SIZE(chanmode); i++) {
@@ -47,8 +46,6 @@ static int join_ocb(struct nl80211_state *state,
 			    chanmode_selected->width);
 		NLA_PUT_U32(msg, NL80211_ATTR_CENTER_FREQ1, freq);
 
-		argv++;
-		argc--;
 	} else {
 		return 1;
 	}
-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux