Skip to content

Commit 5140974

Browse files
committed
mac80211: remove unused assignment
The next line overwrites this assignment, so remove it; there's no real value in using it for the next assignment either. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent 53b1898 commit 5140974

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

net/mac80211/util.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2555,7 +2555,6 @@ int ieee80211_add_srates_ie(struct ieee80211_sub_if_data *sdata,
25552555

25562556
if (need_basic && basic_rates & BIT(i))
25572557
basic = 0x80;
2558-
rate = sband->bitrates[i].bitrate;
25592558
rate = DIV_ROUND_UP(sband->bitrates[i].bitrate,
25602559
5 * (1 << shift));
25612560
*pos++ = basic | (u8) rate;

0 commit comments

Comments
 (0)