projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a9a3ef
)
ath6kl: simplify logical condition
author
Heinrich Schuchardt
<xypron.glpk@gmx.de>
Wed, 18 May 2016 00:24:17 +0000
(
02:24
+0200)
committer
Kalle Valo
<kvalo@qca.qualcomm.com>
Sat, 28 May 2016 08:23:18 +0000
(11:23 +0300)
x <= 7 implies x < 8.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/wmi.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/ath6kl/wmi.c
b/drivers/net/wireless/ath/ath6kl/wmi.c
index
631c3a0
..
b8cf04d
100644
(file)
--- 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 ||