From: Heinrich Schuchardt Date: Wed, 18 May 2016 00:24:17 +0000 (+0200) Subject: ath6kl: simplify logical condition X-Git-Tag: v4.8-rc1~140^2~279^2^2~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=93b4a09f0f3068e3190548393f39262e5295960e;p=platform%2Fkernel%2Flinux-exynos.git ath6kl: simplify logical condition x <= 7 implies x < 8. Signed-off-by: Heinrich Schuchardt Signed-off-by: Kalle Valo --- diff --git a/drivers/net/wireless/ath/ath6kl/wmi.c b/drivers/net/wireless/ath/ath6kl/wmi.c index 631c3a0..b8cf04d 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 ||