From patchwork Sun Oct 15 01:54:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Larry Finger X-Patchwork-Id: 10006693 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8BD4560230 for ; Sun, 15 Oct 2017 01:54:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7335A2918B for ; Sun, 15 Oct 2017 01:54:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 64DC1291F6; Sun, 15 Oct 2017 01:54:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 601EF2918B for ; Sun, 15 Oct 2017 01:54:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751370AbdJOByJ (ORCPT ); Sat, 14 Oct 2017 21:54:09 -0400 Received: from mail-oi0-f67.google.com ([209.85.218.67]:46761 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751165AbdJOByI (ORCPT ); Sat, 14 Oct 2017 21:54:08 -0400 Received: by mail-oi0-f67.google.com with SMTP id n82so20150880oig.3 for ; Sat, 14 Oct 2017 18:54:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id; bh=sjyyWP30WF+fzQ0V8/E8x0Gte9fBbvmVHGhRlGCUBzc=; b=lfdTJT1HKQTmmsU007KJLJ+7JBZZbb17TTO4L6LE27NPQVerpjs9ZNpVoK546TXbYW 5VnjFG/an/dmJ1lK/2Q+OkT+sWk3aTcsjVYMNu87h8wqg6OONDfggd6BFQTpw21oV2Sr PvJv+9M7qPpc32Hh9etjvqCMYj7CIUa7af2T/cFKrKsQtHIUS7KRo6wiZYHqTZBHQaMz cCQL8Ioe4CvJD9ZcY2q0W8IMisqViNwfyAs5iKaikuV0o4q67pvFiUn8vaQH3IampKOC QXoLUZw9/ZWVZlfmAzvrynnS3gXbl+ZyKphh2zKnpOdAL1mYQdaCHQ70YHJJGE7D6dif sEXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=sjyyWP30WF+fzQ0V8/E8x0Gte9fBbvmVHGhRlGCUBzc=; b=GGA2vzLTuKtlPNd2YFfR4o51qAHATpDKuCQl0asah5i47zXYB/EAM0BKOgMng7UBBt 9UeWcNw232KgxBYpu4V4hhRrpqBRnEOqCyM2w5fJF8HpHFP/U3hWf+hZjYrgMKRQS8L6 x/DWGfmTvyEMY9VdFdFqCP4AMpgUeyS/Ny7ONy0l1vVWrcjiMW3GBpEODeAUNi15J3Om uMLLQDQuQluVRH91ylU+41S+y0MNscaPI6z3zx3NJ30vvmQJK19gBDyhvCgNQ6JPGZBk 1B/58EtPGvhvAKorg1eynzTRWDkEBcYyd7KfuKZuF4BQwBo89OPhX2QKpMu0JhYTP/bd EZpA== X-Gm-Message-State: AMCzsaWuf8m96IpuJ1PjkksDEI+8y5J0U+T2PckUlFxstT4LIxbdFXI0 hy83LI1C/eA48rnb6v2a3c8= X-Google-Smtp-Source: ABhQp+Rir1D35DPzRG6FYm4h6eKOYlVRQwCBiLFA154250ImLsY2mGEJdrHG6CAGWvI4Po0dcwlnew== X-Received: by 10.202.225.5 with SMTP id y5mr3365466oig.345.1508032448213; Sat, 14 Oct 2017 18:54:08 -0700 (PDT) Received: from linux-4v1g.suse (cpe-24-31-251-255.kc.res.rr.com. [24.31.251.255]) by smtp.gmail.com with ESMTPSA id n3sm2291585ota.47.2017.10.14.18.54.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 14 Oct 2017 18:54:07 -0700 (PDT) From: Larry Finger To: kvalo@codeaurora.org Cc: linux-wireless@vger.kernel.org, Larry Finger , Ping-Ke Shih , Yan-Hsuan Chuang , Birming Chiu , Shaofu , Steven Ting , kbuild-all@01.org, Julia Lawall Subject: [PATCH] rtlwifi: Fix typo in if ... else if ... else construct Date: Sat, 14 Oct 2017 20:54:02 -0500 Message-Id: <20171015015402.11217-1-Larry.Finger@lwfinger.net> X-Mailer: git-send-email 2.12.3 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The kbuild test robot reports two conditions with no effect (if == else). These are the result of copy and paste typographical errors. Signed-off-by: Larry Finger Cc: Ping-Ke Shih Cc: Yan-Hsuan Chuang Cc: Birming Chiu Cc: Shaofu Cc: Steven Ting Cc: kbuild-all@01.org Cc: Julia Lawall --- Kalle, This material is for the 4.15 stream. Larry --- drivers/net/wireless/realtek/rtlwifi/base.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/realtek/rtlwifi/base.c b/drivers/net/wireless/realtek/rtlwifi/base.c index ea18aa7afecb..66737f6b7359 100644 --- a/drivers/net/wireless/realtek/rtlwifi/base.c +++ b/drivers/net/wireless/realtek/rtlwifi/base.c @@ -835,7 +835,7 @@ static u8 _rtl_get_vht_highest_n_rate(struct ieee80211_hw *hw, else if ((tx_mcs_map & 0x000c) >> 2 == IEEE80211_VHT_MCS_SUPPORT_0_8) hw_rate = - rtlpriv->cfg->maps[RTL_RC_VHT_RATE_2SS_MCS9]; + rtlpriv->cfg->maps[RTL_RC_VHT_RATE_2SS_MCS8]; else hw_rate = rtlpriv->cfg->maps[RTL_RC_VHT_RATE_2SS_MCS9]; @@ -847,7 +847,7 @@ static u8 _rtl_get_vht_highest_n_rate(struct ieee80211_hw *hw, else if ((tx_mcs_map & 0x0003) == IEEE80211_VHT_MCS_SUPPORT_0_8) hw_rate = - rtlpriv->cfg->maps[RTL_RC_VHT_RATE_1SS_MCS9]; + rtlpriv->cfg->maps[RTL_RC_VHT_RATE_1SS_MCS8]; else hw_rate = rtlpriv->cfg->maps[RTL_RC_VHT_RATE_1SS_MCS9];