Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1402666 > unrolled thread
| Started by | Heinrich Schuchardt <xypron.glpk@gmx.de> |
|---|---|
| First post | 2016-05-18 02:30 +0200 |
| Last post | 2016-05-28 10:30 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH] wifi: ath6kl: simplify logical condition Heinrich Schuchardt <xypron.glpk@gmx.de> - 2016-05-18 02:30 +0200
Re: wifi: ath6kl: simplify logical condition Kalle Valo <kvalo@qca.qualcomm.com> - 2016-05-28 10:30 +0200
| From | Heinrich Schuchardt <xypron.glpk@gmx.de> |
|---|---|
| Date | 2016-05-18 02:30 +0200 |
| Subject | [PATCH] wifi: ath6kl: simplify logical condition |
| Message-ID | <rzXx7-38V-1@gated-at.bofh.it> |
x <= 7 implies x < 8. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> --- drivers/net/wireless/ath/ath6kl/wmi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 || -- 2.1.4
[toc] | [next] | [standalone]
| From | Kalle Valo <kvalo@qca.qualcomm.com> |
|---|---|
| Date | 2016-05-28 10:30 +0200 |
| Subject | Re: wifi: ath6kl: simplify logical condition |
| Message-ID | <rDHN7-6yQ-11@gated-at.bofh.it> |
| In reply to | #1402666 |
Heinrich Schuchardt <xypron.glpk@gmx.de> wrote: > x <= 7 implies x < 8. > > Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Thanks, 1 patch applied to ath.git: 93b4a09f0f30 ath6kl: simplify logical condition -- Sent by pwcli https://patchwork.kernel.org/patch/9115691/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web