Skip to content

Commit

Permalink
minstrel: Remove unused function parameter in calc_rate_durations()
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Kelle <patrick.kelle81@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Patrick Kelle authored and John W. Linville committed Nov 11, 2011
1 parent 8915f98 commit 868a5f7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions net/mac80211/rc80211_minstrel.c
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,8 @@ minstrel_get_rate(void *priv, struct ieee80211_sta *sta,


static void
calc_rate_durations(struct minstrel_sta_info *mi, struct ieee80211_local *local,
struct minstrel_rate *d, struct ieee80211_rate *rate)
calc_rate_durations(struct ieee80211_local *local, struct minstrel_rate *d,
struct ieee80211_rate *rate)
{
int erp = !!(rate->flags & IEEE80211_RATE_ERP_G);

Expand Down Expand Up @@ -402,8 +402,7 @@ minstrel_rate_init(void *priv, struct ieee80211_supported_band *sband,

mr->rix = i;
mr->bitrate = sband->bitrates[i].bitrate / 5;
calc_rate_durations(mi, local, mr,
&sband->bitrates[i]);
calc_rate_durations(local, mr, &sband->bitrates[i]);

/* calculate maximum number of retransmissions before
* fallback (based on maximum segment size) */
Expand Down

0 comments on commit 868a5f7

Please sign in to comment.