diff options
author | Johannes Berg <johannes.berg@intel.com> | 2018-04-20 12:49:23 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2018-05-07 20:50:07 +0200 |
commit | a403f3bf6390f085b7864814fb17567718c5a22c (patch) | |
tree | f8a220ce6a7abf64674397b120a47f633e17226e /net/mac80211 | |
parent | mac80211: ethtool: memset the whole sinfo struct to 0 (diff) | |
download | linux-a403f3bf6390f085b7864814fb17567718c5a22c.tar.xz linux-a403f3bf6390f085b7864814fb17567718c5a22c.zip |
mac80211: remove pointless flags=0 assignment
The data structure is initialized to all zeroes, and
we already rely on that in other places, so remove the
pointless assignment to 0.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r-- | net/mac80211/sta_info.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/sta_info.c b/net/mac80211/sta_info.c index 655c3d8b0d80..2d5ffb0a16f6 100644 --- a/net/mac80211/sta_info.c +++ b/net/mac80211/sta_info.c @@ -3,6 +3,7 @@ * Copyright 2006-2007 Jiri Benc <jbenc@suse.cz> * Copyright 2013-2014 Intel Mobile Communications GmbH * Copyright (C) 2015 - 2017 Intel Deutschland GmbH + * Copyright (C) 2018 Intel Corporation * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as @@ -1992,7 +1993,6 @@ static void sta_stats_decode_rate(struct ieee80211_local *local, u16 rate, int band = STA_STATS_GET(LEGACY_BAND, rate); int rate_idx = STA_STATS_GET(LEGACY_IDX, rate); - rinfo->flags = 0; sband = local->hw.wiphy->bands[band]; brate = sband->bitrates[rate_idx].bitrate; if (rinfo->bw == RATE_INFO_BW_5) |