Received: by 2002:ac0:950e:0:0:0:0:0 with SMTP id f14csp1355506imc; Sun, 17 Mar 2019 11:32:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqzZ0WTvTVMDvqUyv3K+/bV757fd/Ruy6wQUz6eY3J6bHgYAYQ5H72A9PA8EUPFKNQIG+Sg3 X-Received: by 2002:a63:6e8d:: with SMTP id j135mr13902934pgc.160.1552847559645; Sun, 17 Mar 2019 11:32:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552847559; cv=none; d=google.com; s=arc-20160816; b=xJqueuGEoKNg/g4BRQfhQQNbT01byXcXP24+pDcSI6GfQIRtXAJHvmzl3BGbE3Ha9Z PXlibnHWYlJChSGGQskwMQokNrL6p15V0thBrjSSgyKF+qyW7UIxYJgMXjjgcsCrCu2z LutzqTBxX+2LfrVZRWc8n4+9lUhsCelpAwd8aJiNKx8xKb6xH+LCO+MGxzvrMb2joWH/ MmGW690uubKCz5vbAhc0L0rF17D9gEqPMbfqgFbi4Ydgl002hjHPxpgAMNWJylM9njq8 ttFw1cRATHclEkD9P/aMAVFdnHWt0w8qSsjtWua1Y37A963B8wrnk8Wd+KHCDxuuqPee 7QRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :reply-to:references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=KaDi2iVOcodlzUomJ8CuqU7h3SZ/Mey4GdaKVkxnTuo=; b=sDzV2nLJH3jOGoRa1fLJshFNBf6YLOxlaxZBzG07gSpDEY552htiNU7tyuWtZfjJ53 brUKDf2lp1InZwcyKMGWVKpEkSygO5vsNktJv/ycqPOFSrCwV/04lo2WLr8CCyMyNT/d HBx8osfh6a9sA7tHoYCFyxIIy5T0PQrWkzVB6iJTo7zqkQvvwTSKkY+u/Zev4o0DL19t KVsX7+v0ZGtTxP6qjG1sON1urt3vAITZ9HZqgC2MwErXl+vFeQNU4kBYbEncAeeW9hId J/0SIByFp6A/L89zFuwOEtXka1nbav/R1Z0r79jqj0+139KxdHydnRXCdUzSilliXtgU KQkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ni1mKPir; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 s12si7209530pgi.416.2019.03.17.11.32.24; Sun, 17 Mar 2019 11:32:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=ni1mKPir; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1727485AbfCQSbh (ORCPT + 99 others); Sun, 17 Mar 2019 14:31:37 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:35551 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727438AbfCQSbf (ORCPT ); Sun, 17 Mar 2019 14:31:35 -0400 Received: by mail-wr1-f65.google.com with SMTP id w1so8661229wrp.2 for ; Sun, 17 Mar 2019 11:31:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references:reply-to :mime-version:content-transfer-encoding; bh=KaDi2iVOcodlzUomJ8CuqU7h3SZ/Mey4GdaKVkxnTuo=; b=ni1mKPir6uMjpPg9Ik5cJ36tQThgSkSYbVDt0q0v6P1KmK8wxtpPf0S7CgIdTNLy7J sajNYigX112mrGWKiSHDqIccr2S2j96l5mQOx5+88BltCl9N3nM/rwVsub9hG5mUNUVw Fq4E86/GrAmtbCDU0beA/AY+Z23a8H9iCu+xyKg46NHuae1BpmZA2tpKQCDHK0Jo8TWZ k3D5Hx6Lpdv6h+AJ+JmqJX70aAWF3KaK9/wgPnMmvE6QRcs6MyDJz1ZSbeGzCQRbbOO8 2V2ftrcaL22IR55XIeeOamHvBtCaKxsaA0Cf1GOWyeeSolK735vuS2z40uRejnZ2x/b7 bSzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:reply-to:mime-version:content-transfer-encoding; bh=KaDi2iVOcodlzUomJ8CuqU7h3SZ/Mey4GdaKVkxnTuo=; b=lAbX1gFXcrNd3jhC6WIt6+WxtKdflqnf9TN8lpCyys8/m0XnCV7e6GBSRWYTXqxti9 RH3KtHEySrsBeCzOBg0I1JsvBpxAxKUGArERgt5eYTeC0uurU8yXRxfXudc9QWTuYKh8 Q+b5+TFkvztsrFZ6ArpHRssbtsHZcVtHGnUkDydJaHvWv/M4RVM81slsOQqzSZDN8//g ncGXykC7WfX6ftgkagBbqr9UBCnkCbplJUN2lWOOne/kPL2FPNZUnfiEEB03b1tNiHCB 9MQgrqP7NTgqDzLgtzdg/g0Mq8LlPI9USLLercSzJqG+fp8MSrg+aAPTbolY3LnYrHj6 h0bQ== X-Gm-Message-State: APjAAAW/TdwS5Nvz/P7JFtAYNGRB630TGXebvQvdLDUxzN8OFOUUSa4i 8wUzaYJuKIbPV90vuqS13fFFx5Nm/Ls= X-Received: by 2002:adf:b591:: with SMTP id c17mr10052234wre.195.1552847493981; Sun, 17 Mar 2019 11:31:33 -0700 (PDT) Received: from p200300EEEE2F.fritz.box (p200300C9871AF900B43796A8F69485B6.dip0.t-ipconnect.de. [2003:c9:871a:f900:b437:96a8:f694:85b6]) by smtp.gmail.com with ESMTPSA id q5sm8415358wrn.43.2019.03.17.11.31.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 17 Mar 2019 11:31:33 -0700 (PDT) From: Emanuel Bennici To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , Joe Perches , Hans de Goede , Arnd Bergmann , Dan Carpenter , Hardik Singh Rathore , Nathan Chancellor Subject: [PATCH 05/10] staging: rtl8723bs: Remove unreachable Code in core/rtw_cmd.c Date: Sun, 17 Mar 2019 19:31:08 +0100 Message-Id: <20190317183115.32393-5-benniciemanuel78@gmail.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190317183115.32393-1-benniciemanuel78@gmail.com> References: <20190317183115.32393-1-benniciemanuel78@gmail.com> Reply-To: benniciemanuel78@gmail.com MIME-Version: 1.0 X-Patchwork-Bot: notify Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The `case INTEl_WIDI_WK_CID`-Statement in Function `u8 rtw_drvextra_cmd_hdl` wouldn't be used because of CONFIG_INTEL_WIDI. Signed-off-by: Emanuel Bennici --- drivers/staging/rtl8723bs/core/rtw_cmd.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_cmd.c b/drivers/staging/rtl8723bs/core/rtw_cmd.c index 91520ca3bbad..6c6ddf461590 100644 --- a/drivers/staging/rtl8723bs/core/rtw_cmd.c +++ b/drivers/staging/rtl8723bs/core/rtw_cmd.c @@ -2007,11 +2007,6 @@ u8 rtw_drvextra_cmd_hdl(struct adapter *padapter, unsigned char *pbuf) case CHECK_HIQ_WK_CID: rtw_chk_hi_queue_hdl(padapter); break; -#ifdef CONFIG_INTEL_WIDI - case INTEl_WIDI_WK_CID: - intel_widi_wk_hdl(padapter, pdrvextra_cmd->type, pdrvextra_cmd->pbuf); - break; -#endif /* CONFIG_INTEL_WIDI */ /* add for CONFIG_IEEE80211W, none 11w can use it */ case RESET_SECURITYPRIV: reset_securitypriv_hdl(padapter); -- 2.19.1