From patchwork Wed May 18 00:24:17 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heinrich Schuchardt X-Patchwork-Id: 9115691 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C6BE89F1C3 for ; Wed, 18 May 2016 00:24:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0A09720154 for ; Wed, 18 May 2016 00:24:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3E3F020148 for ; Wed, 18 May 2016 00:24:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755342AbcERAYb (ORCPT ); Tue, 17 May 2016 20:24:31 -0400 Received: from mout.gmx.net ([212.227.15.19]:50560 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752116AbcERAYa (ORCPT ); Tue, 17 May 2016 20:24:30 -0400 Received: from LT001.lan ([62.143.92.134]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0Mgc0l-1bGLYX3Vvb-00Nztg; Wed, 18 May 2016 02:24:22 +0200 From: Heinrich Schuchardt To: Kalle Valo Cc: linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Heinrich Schuchardt Subject: [PATCH] wifi: ath6kl: simplify logical condition Date: Wed, 18 May 2016 02:24:17 +0200 Message-Id: <1463531057-12917-1-git-send-email-xypron.glpk@gmx.de> X-Mailer: git-send-email 2.1.4 X-Provags-ID: V03:K0:IU+gX5thWhOKAkueOTxjewjjA1Xj16yOgmwW6HCv5u3uDvK7apr ErvG8krpJn/LqsQs70AP8RUTUh8kw6DsyKwzh2+o/fTXk8HDygZeYlLM6kkCmLubc5xKcKk tYDBrOT7+4MiDQzJe/4TfC6Hbp0e3bekHDKC9BxQRySQRJWZ9TOl0vWDKnsTVSAOh8ki97m t9f8CV74eJlpT870ZTBZw== X-UI-Out-Filterresults: notjunk:1; V01:K0:sQ+aBMrHwcs=:Hi1mYNQQTKd9hRAURaTlKO yeJXPlJg03w+CqDc4u4sh1r3I0jQGa+cm3AQzLQ9bjQV3NwuNVL994XO8AaxE3081bVJB5h11 ZFRZ4LZL+56/aw/5Tv1cRrU+OZepEyIk779AMyWe+GyXciG40RawaxKOI5vhxIhaK0s1FpqVA tpDSalRduVcZ0tk2mIXsvnX2nnwmnfiXR/1hLB4O798BIBNgMasw69erNuMzgzS5ZXkO/b93k 6ftJPuoXtaqWMsaa3q9UMxR2SHdyfR0GMm82wvptzCIMefWI2nQARVGGc+F6SD3WW8i4eSwcC l3g6Ybzb4lUH99BBa9g3lySxwa0FPYE51WpWdDy2cAyOk8smcBH0rLjIWvqPpcUZdKV55MNZw BDvJnVeGyuRfTyp+FhONg3o79wzPoyKcCH8wUMAXFEEPSyiEJElznSfBm+bcdpYy7Mie7p1wi YW8q2xc56oyJmVNNE81Bws9kOfHrndjV9PmCxZpZ+XDCvsZkavukuGKAvXbCyFQ+3tDq0FVKV 2XquVoZ7w1rDjpWEBLxW1Apd9e7WqwYy5a/ar3s4Pa90cFuOyH9guINwAUng70mCtZTfNk1Zb LwaXkuYTvZp5wIvCV69OvhTR8BQ7TLm0w2kabys8IsgX/7pmzeSjIwm8pDdyGvrK6kfOC2NFQ xzIqggslxyrrwlF3bDidqSIAE1nPrVxZm1MqnsvRSiI4vemtJaLe7Jb4dsKYiZgBrf70zYZKq Mq+fGJDDa/Dl0aOj7WAHEG8AzLoX7BbIBAkcdy0W9iymRsHxKPSsWAyTHnM= Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP x <= 7 implies x < 8. Signed-off-by: Heinrich Schuchardt --- 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 ||