Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3168094pxf; Mon, 15 Mar 2021 03:21:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxqbXLII02rK+Y/h8hXaAMkMy7DNLJxitj7dTsZtoSX+Y+hOnFBOoHKwNZGXpE23a/y8i0v X-Received: by 2002:a17:907:9709:: with SMTP id jg9mr21986236ejc.276.1615803668573; Mon, 15 Mar 2021 03:21:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615803668; cv=none; d=google.com; s=arc-20160816; b=v9UHvblZcehqFvW4DH11jW3oPV5M5lquyIpesVkkP1boaTwvMhgPTHCFyIp7boHTod TvLmuRYChmiAt7Ecj+OAPriksU+4yCPgBkmJezk91W/plalUUyd2NLtGUK5i1NtPI//N Zrfc5eWz27XuqyOU8EiJAqVzFZZWalW3+2NRliE6gsjfgthVZZhd7N/FFcbb0cMVHxXx BWNEkLzC5JU99nmVC0kQ9KGhqnh8PyQfYaUw9A6b+eyfs2gIiCIFHmakxg59ZFFBsvfG yKDmjY3o1irPbPgPaX6gUEJlQS9Bd4AGs+xEvXwRwsV2wHOPfQ3Y5rjyGh2CKEkMRjT+ KHrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=483MsuDXnE3RLzpAgeT1+D3H8iMhTgEIGI+7YS5vbGk=; b=htLo4y7/A1dee3n+5R62Kygx1GiDOSBq7rZNqGVHZiV+bxs1ilsWsi2nXc1Fe749F7 8aIsxhfgeWzZ2O+Wd8GuqtF2pa4y27iYY+D/zNDyUXogSySfrJWDRlbtHKMGsLDYQj43 dBP9NVUigCMgUlc5mq/fdIKNJWaukLI0GBaVxAHO40n/PjxrIyX3hu2o7qk90id54N3I YWzeeai22YoKcecO8ImpRnU46/BeCF1S0IG0irCseu+otnPpseOfl5Xk2LjTBCM2TmlW xKfQi0Gz8tX42JA7k/MwcvIMlQL/su1y0AAcuGrmmyUYBndEpFBGLFeSsV3v/yLsottv ZJnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gUJ+iDOd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id t19si10077496ejx.42.2021.03.15.03.20.45; Mon, 15 Mar 2021 03:21:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gUJ+iDOd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S230000AbhCOKRV (ORCPT + 99 others); Mon, 15 Mar 2021 06:17:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229746AbhCOKRO (ORCPT ); Mon, 15 Mar 2021 06:17:14 -0400 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B78E1C061574 for ; Mon, 15 Mar 2021 03:17:13 -0700 (PDT) Received: by mail-wm1-x333.google.com with SMTP id g20so7770811wmk.3 for ; Mon, 15 Mar 2021 03:17:13 -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:references:mime-version :content-disposition:in-reply-to:user-agent; bh=483MsuDXnE3RLzpAgeT1+D3H8iMhTgEIGI+7YS5vbGk=; b=gUJ+iDOd/hrZQ8CclyK4m6pm5Cq9McQVETEe3Zjf22sJ28FDACVqmGUJOlegK2Ipvn sqxGwlEGVAAFKJS0V4SyIbOFYf480OwRx8fEkXU5CGxRUy/p684/a04hmHbpjIUE1yli ca5Np78hHUUn0GijVoXU19YnWtRD4hROVi5gJhWB2YfZUMdAl7k/y5b37Wiew1FVKVSf RI4mO2VRRqiY7FZQ+bH0tFvExc86tajcJC1+8H5LF/Ck+QnFos78Tquh/EKXyvYDTVtB +KTgBN4+m+ycHndtp1Y8HCfEhdUNIbn2tM6ZUbzXZpdhDq7ZgycASU0GziJQo3cc2wlv F8Dw== 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:references :mime-version:content-disposition:in-reply-to:user-agent; bh=483MsuDXnE3RLzpAgeT1+D3H8iMhTgEIGI+7YS5vbGk=; b=LCouqsSHMD8mRwx9vYmtigVcsfAzDEknkgp7ACq7fWtm3Nf+etVbUv7rYc50X5NNGi Xb0EMKLPAwyAQb/TpONKM1JFBnz5sHO8eb9kA5mzay2AZohoGKuhfUWpejH77U2XgYjj wFD76pUlg/Vd7pblz7XrRtpB4ER9of155R8SEEma1Ig+DluACm9Rp2x7t3rbIGzKPBB7 zpqF4HzoPB17ssnJE+p4xfhQaaQg1mPhOp1m9ktNS7d6DEaizPHVX9jOuMe2ni2d8EoN 1P6xolffBcgL6LAezfn8Xp5kcQlrCWXWiHISOsd2q2hsluogsePDpSb9KE9gUC2fFn84 nykw== X-Gm-Message-State: AOAM5317Y+FaXwhLF8r5C4zDTeZzoqd3c3IGvYqkGqyRy2KFlwLSTi9E zGgP3s69DjrW2kVyfKQcioPDr+3X2s0= X-Received: by 2002:a7b:cb55:: with SMTP id v21mr2359479wmj.188.1615803432395; Mon, 15 Mar 2021 03:17:12 -0700 (PDT) Received: from agape.jhs ([5.171.72.229]) by smtp.gmail.com with ESMTPSA id v18sm19410032wrf.41.2021.03.15.03.17.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Mar 2021 03:17:12 -0700 (PDT) Date: Mon, 15 Mar 2021 11:17:09 +0100 From: Fabio Aiuto To: gregkh@linuxfoundation.org Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 13/15] staging: rtl8723bs: remove unused code blocks conditioned by never set CONFIG_SW_CHANNEL_PLAN Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org remove conditional code blocks checked by unused CONFIG_SW_CHANNEL_PLAN cleaning required in TODO file: find and remove code blocks guarded by never set CONFIG_FOO defines Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/hal/hal_com.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/hal_com.c b/drivers/staging/rtl8723bs/hal/hal_com.c index bf07251a07d7..368807e05830 100644 --- a/drivers/staging/rtl8723bs/hal/hal_com.c +++ b/drivers/staging/rtl8723bs/hal/hal_com.c @@ -132,10 +132,8 @@ u8 hal_com_config_channel_plan( hw_chnlPlan = hw_channel_plan & (~EEPROM_CHANNEL_PLAN_BY_HW_MASK); if (rtw_is_channel_plan_valid(hw_chnlPlan)) { -#ifndef CONFIG_SW_CHANNEL_PLAN if (hw_channel_plan & EEPROM_CHANNEL_PLAN_BY_HW_MASK) pHalData->bDisableSWChannelPlan = true; -#endif /* !CONFIG_SW_CHANNEL_PLAN */ chnlPlan = hw_chnlPlan; } -- 2.20.1