diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2016-05-18 02:24:17 +0200 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2016-05-28 10:23:18 +0200 |
commit | 93b4a09f0f3068e3190548393f39262e5295960e (patch) | |
tree | db4188874b98371222099f919ad5897b6d5a52e9 /drivers/net/wireless | |
parent | ath6kl: fix typo (diff) | |
download | linux-93b4a09f0f3068e3190548393f39262e5295960e.tar.xz linux-93b4a09f0f3068e3190548393f39262e5295960e.zip |
ath6kl: simplify logical condition
x <= 7 implies x < 8.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/wmi.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/wmi.c b/drivers/net/wireless/ath/ath6kl/wmi.c index 631c3a0c572b..b8cf04d11975 100644 --- a/drivers/net/wireless/ath/ath6kl/wmi.c +++ b/drivers/net/wireless/ath/ath6kl/wmi.c @@ -2544,8 +2544,7 @@ int ath6kl_wmi_create_pstream_cmd(struct wmi *wmi, u8 if_idx, s32 nominal_phy = 0; int ret; - if (!((params->user_pri < 8) && - (params->user_pri <= 0x7) && + if (!((params->user_pri <= 0x7) && (up_to_ac[params->user_pri & 0x7] == params->traffic_class) && (params->traffic_direc == UPLINK_TRAFFIC || params->traffic_direc == DNLINK_TRAFFIC || |