Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3565514ybg; Mon, 28 Oct 2019 15:04:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqyh+6u21ly8Xr+tRn4vq2G1mSOSSSb+oerMb9xUIQEm0I84yW3X8iFbU5i/Z7dObsOp5E8F X-Received: by 2002:aa7:c645:: with SMTP id z5mr9555141edr.204.1572300276404; Mon, 28 Oct 2019 15:04:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572300276; cv=none; d=google.com; s=arc-20160816; b=iuaDhMWxxvy9dsJD7J6tWge2GcOCNn/fcKNw7BBWo9RCr5ZeXb1cwaj5hGqw1T/2cr h0Exlyl3arN0uEBFkdv6PXOcXebv2b7lDkT5xGDZuBpSrqqwe43BFsIWwJvIiWrUwpx+ msjqFDBQJEez0r6u4NDAWQxtgb8VxGS2KKOEYuBgDN/2oX5Mnjb816maLRivNqj0aKan KliHJ3gzj0lD9O+KaEbQs309LM+P6MZ7OLvezkppe48bHqQACH2GlxMa55csgmtiJThb T8NK1l+yH+51y8OHNfsY0KkKzg6eejUor/9MmcRvJRS38NOR53uS8vBeQAFvkA5f1MBr Uf0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=4FYNWJKX/XjWeMthjDP9NPXXb7ZZAxlczEJEW9ICuKU=; b=GwBoIhT9pFKE7dcggyLAhcNqxszXSrAoJVhb5pMz+j7kAOGqEFgAbw3pd7JZB2/lI6 Y0B4c/DWCB1FURSoRZ5lmmNbX2E6SCNcU73FCi8vL/CsbfMHuM3SkvOG+PN1Q6qU2pyt cHQ0dRQ/vt0k8NznwNMWUzdoHaA8p9TnwMiyavd463EqsS2/pUvdJiE84y++m2z7vRAj ccjx9G+j9IcsonJCSiD6rBC/Xn4ewfho0wL15mRfe5J/tVwiHGsJdsNing5tNzbJkt6q Qf5tMQu6D4hBptm59L27urqDwsCkXBioewDIlmVaEuEErlj4jl3r3uRIUchUAgn/63Xs +SWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="ZWfPnOj/"; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id rv7si6386834ejb.366.2019.10.28.15.04.10; Mon, 28 Oct 2019 15:04:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="ZWfPnOj/"; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728766AbfJ1Svk (ORCPT + 99 others); Mon, 28 Oct 2019 14:51:40 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:43726 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727218AbfJ1Svk (ORCPT ); Mon, 28 Oct 2019 14:51:40 -0400 Received: by mail-pf1-f196.google.com with SMTP id 3so7481033pfb.10; Mon, 28 Oct 2019 11:51:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=4FYNWJKX/XjWeMthjDP9NPXXb7ZZAxlczEJEW9ICuKU=; b=ZWfPnOj/qdzvpgxr9MmWErn5OrmtLT+k/g3sZTHiCQeeQK0ROyMMDhI9w67lzmwIn8 OpjFKAHZ3aRh4EaUTmXG59bPGfFi9RFrIXdnMJSLyW+bFJATYfarz461YX7DeKwwAoPw RNEU4Iz8pI/eykMx8MUY0SAtbedrhXI9MVDsMUaNLwYFc5YT4K0p8ugo+Ut77ZXvTeL7 MhEMq2QMTpHu2oTmqwh5Smc4s71mnklIKkAKDrei17uu9zGfL7GzC+d3JB87lUJCbI/6 Tp9BLLo7TwLN9uqQah2NLQ9515q8f0gZ+2QOxLINCCYN2z1maYGVOLXLAuMtpPKTp26W Aa/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=4FYNWJKX/XjWeMthjDP9NPXXb7ZZAxlczEJEW9ICuKU=; b=FPO6JRkMYZ/K8GApAZoZA9324YhNxZPMVoq+zdWsaASiVTjSrCbQBTfnLQXKIHVGXH IFuxuFqk+pglU8KmQaXTXPphNzN46FSC+Wa9nO9WGCUA/MXBgz1063OW1cj42X1mOrTG D3J8WJfajPcdiDN3jozkuwaIIVe0NxJBS+sPlBXCjzOLYj6U1SU+vERoYIg+Q9r1klN8 +bZ031ekNJMXsv/PyJhQ/LCtv63R2hHaMCGB83sK+WH8ecLZmQYUyqs5xTpvTjjcKbGD MgKd48QFW7FbZyofhuuwtUEu2tVfU+MTWBdfKlahJw0fzIul8mvSZHjYrGKlvbe3dLE3 v/Mg== X-Gm-Message-State: APjAAAXDV+fDPVthd7NdJ2hfbvd7zo8QGdlGDsAwDV+k44lsK3xAcNiV BR8RufX1pE9PCTMf+yMl7QY= X-Received: by 2002:a63:f923:: with SMTP id h35mr22990453pgi.323.1572288699408; Mon, 28 Oct 2019 11:51:39 -0700 (PDT) Received: from saurav ([27.62.167.137]) by smtp.gmail.com with ESMTPSA id p9sm6250257pfq.40.2019.10.28.11.51.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Oct 2019 11:51:38 -0700 (PDT) Date: Tue, 29 Oct 2019 00:21:30 +0530 From: Saurav Girepunje To: pkshih@realtek.com, kvalo@codeaurora.org, davem@davemloft.net, Larry.Finger@lwfinger.net, saurav.girepunje@gmail.com, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: saurav.girepunje@hotmail.com Subject: [PATCH] rtlwifi: rtl8192c: Drop condition with no effect Message-ID: <20191028185130.GA26825@saurav> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org As the "else if" and "else" branch body are identical the condition has no effect. So drop the "else if" condition. Signed-off-by: Saurav Girepunje --- drivers/net/wireless/realtek/rtlwifi/rtl8192c/dm_common.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8192c/dm_common.c b/drivers/net/wireless/realtek/rtlwifi/rtl8192c/dm_common.c index f2908ee5f860..4bef237f488d 100644 --- a/drivers/net/wireless/realtek/rtlwifi/rtl8192c/dm_common.c +++ b/drivers/net/wireless/realtek/rtlwifi/rtl8192c/dm_common.c @@ -1649,8 +1649,6 @@ static void rtl92c_bt_ant_isolation(struct ieee80211_hw *hw, u8 tmp1byte) (rtlpriv->btcoexist.bt_rssi_state & BT_RSSI_STATE_SPECIAL_LOW)) { rtl_write_byte(rtlpriv, REG_GPIO_MUXCFG, 0xa0); - } else if (rtlpriv->btcoexist.bt_service == BT_PAN) { - rtl_write_byte(rtlpriv, REG_GPIO_MUXCFG, tmp1byte); } else { rtl_write_byte(rtlpriv, REG_GPIO_MUXCFG, tmp1byte); } -- 2.20.1