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>
This commit is contained in:

committed by
Kalle Valo

vanhempi
8a9a3efa9e
commit
93b4a09f0f
@@ -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 ||
|
||||
|
Viittaa uudesa ongelmassa
Block a user