Jiri Slaby 17dce15801 mac80211/minstrel: fix !x!=0 confusion
Commit 06d961a8e210 ("mac80211/minstrel: use the new rate control API")
inverted the condition 'if (msr->sample_limit != 0)' to
'if (!msr->sample_limit != 0)'. But it is confusing both to people and
compilers (gcc5):
net/mac80211/rc80211_minstrel.c: In function 'minstrel_get_rate':
net/mac80211/rc80211_minstrel.c:376:26: warning: logical not is only applied to the left hand side of comparison
   if (!msr->sample_limit != 0)
                          ^

Let there be only 'if (!msr->sample_limit)'.

Fixes: 06d961a8e210 ("mac80211/minstrel: use the new rate control API")
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2015-02-24 21:12:07 +01:00
..
2015-01-27 11:07:35 +01:00
2015-01-27 11:07:35 +01:00
2015-01-27 11:09:13 +01:00
2015-01-27 11:09:13 +01:00
2015-02-24 10:51:06 +01:00
2014-11-04 13:18:21 +01:00
2014-04-09 14:49:43 +02:00
2014-07-21 12:14:04 +02:00
2014-04-29 17:59:27 +02:00
2014-04-09 14:49:43 +02:00
2015-02-04 14:57:45 -08:00
2014-11-04 13:18:21 +01:00
2014-11-28 15:01:51 +01:00
2015-02-04 14:57:45 -08:00
2015-01-23 15:51:38 +01:00
2015-01-16 13:27:56 +01:00
2013-12-18 10:33:06 +01:00