Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp4542544rwr; Sun, 23 Apr 2023 07:47:05 -0700 (PDT) X-Google-Smtp-Source: AKy350ZJdPxHSzZCPMXYUg3D2LJHrszhIm9EyDdbf+p3ya08ZtoF48TPY1FTKI1QI9nMqMw348GD X-Received: by 2002:a17:90a:b102:b0:246:f8a8:af02 with SMTP id z2-20020a17090ab10200b00246f8a8af02mr11118765pjq.5.1682261224939; Sun, 23 Apr 2023 07:47:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682261224; cv=none; d=google.com; s=arc-20160816; b=KHDdcSQCj+RHJv4lehGEzbPYK3yKcEOjdhKSFCd45RlXp5loTFuJjPENj/WgTdiyze RzeZwCfYe8NZu84fsnlhkZ4U5Rua7VHGy3C+DB16PCKayxbv7pLPKeN7d3doydBwf/Y+ NZomeOGIri4MTL79Kg1GossqAEeE4qKEQ1RCopLP+v9DYvlk2AJTiUxIHLOkpdwHws80 4wHe8NBCDff7vDNK/rj23tmYS8u41044UdQL3O3bjr4PzvAu481kGnS6LoVE50m10NCw Oe+5vVth/dTS2UUGi0xybWDgJWdG9rz/VZQBJBrF6PpZt9dUbqdhxWr8dZMKUn6Nz7wD V08g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:to:from:date:dkim-signature; bh=mVt7yDbi/0+T9A3kskBIqFMz5JWCsfF4sEoLpMEoXSs=; b=gyOgwQLd4Ak+FFtORD5TsZ1De6mfbAW4PVkmmlTNgKAjoZHv4ImzuLage17qbhvDei D57x3TjzOxI8AR2yCgot6mZZmoh7QMIySOovXaqWZc/4ihztrtRz4iQyeht3tlPxSFpV 9kE2Qjiu6UsQcYIWgy6wlWciPdzVCkZVuPpmktayIcWDEAvybzXn1a+f6S1chxiw0w5H yLSP7fd6XuwijlHAAhtFsAA76vO/Pega7Hmfb4d2a+WCGI2cU8BHZo3j/WoM75HYAokC l/2YDjwOO8d/U0hIf/ALhpAsmNqd5U0fV7wZwKG/aFTRCjtwjwGm0ccUVnjaCHt5vchM R23w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=gZeRNCEb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p29-20020a631e5d000000b0051ba2478f52si8827563pgm.524.2023.04.23.07.46.50; Sun, 23 Apr 2023 07:47:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=gZeRNCEb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S230324AbjDWOWK (ORCPT + 99 others); Sun, 23 Apr 2023 10:22:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230319AbjDWOWJ (ORCPT ); Sun, 23 Apr 2023 10:22:09 -0400 Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D73D012B for ; Sun, 23 Apr 2023 07:22:07 -0700 (PDT) Received: by mail-pj1-x102c.google.com with SMTP id 98e67ed59e1d1-247122e9845so2500109a91.0 for ; Sun, 23 Apr 2023 07:22:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682259727; x=1684851727; h=content-disposition:mime-version:message-id:subject:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=mVt7yDbi/0+T9A3kskBIqFMz5JWCsfF4sEoLpMEoXSs=; b=gZeRNCEboFtFuzswRDftVtw5ef6noYVrDAGPpESkhflCUZOvCQ67A/ZnG00pPh9w/h hHPyJyKBnzwFTSmK4Rcbsj5tKGudkYoq3cg4RXZ/a5ApjmhuM6vaoV2jbO9mNPkEcmX/ KKGX1x+ol2BZRH+nAMsFrocqHw7ArIZMJDjQboPTkMvfaX128ThcQWa+3kA+4GBFRnlW jz95jh73NVmasYVkE1nEm8ubnPV3LKe9E0lg210IWfMeG9w5bFtDzOuZcCZX1n6dVyhD rQAPw/eDYMPBvbLe4L/FXcJ53XLs4zmreonjyXe7N7e7qTiRiDobq+ZR1ZmNqVO84tkF n/CA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682259727; x=1684851727; h=content-disposition:mime-version:message-id:subject:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=mVt7yDbi/0+T9A3kskBIqFMz5JWCsfF4sEoLpMEoXSs=; b=ZK+Jt2uaPyVPYJ+q2Qph2EhH8biDFzy36rr6SkfI67mleynVhjynDU41ggSxTPoPDG AIbuZ3b5gNoy/TUYfsry3GtFqqsCYusY56A5ifkb/9wSI098w4S3xUdW11Cqa7cLX7IU YJ8CxhrPOBXHyg5qCdTV0LoCSdhoXyQTxVgokkrXqEQ2x2avGa5p1SRHJHiV3LVSPNtI MwEpqBVYGUi2WEsWri5aTRk3auj8ExzrDY3gN9Xjpyh1ITzRZ5PoYaoPPUHpw+n27ww8 aMASX0HBnV/htvP198PTh3alwE8+TiqISTueQVhCZNqqy2rvPKyhHfwC2ih10dvvIjxK lZxw== X-Gm-Message-State: AAQBX9fzeMudkVoeRRcRoLzG5+MWg/GqhUF15ZBo1N4qV3kjDqlpg7H3 gy8vRaGTD5Qx02bU1+8i7aNx4Q8y1X8= X-Received: by 2002:a17:90b:4acc:b0:24b:8b39:cd7f with SMTP id mh12-20020a17090b4acc00b0024b8b39cd7fmr5213575pjb.41.1682259727343; Sun, 23 Apr 2023 07:22:07 -0700 (PDT) Received: from pop-os.localdomain ([103.251.210.208]) by smtp.gmail.com with ESMTPSA id f3-20020a17090a9b0300b0024b960de793sm1716290pjp.40.2023.04.23.07.22.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Apr 2023 07:22:07 -0700 (PDT) Date: Sun, 23 Apr 2023 19:52:02 +0530 From: Yogesh Hegde To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH v4 0/4] Remove unused rf_set_sens variable Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,FREEMAIL_REPLY, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The rf_set_sens variable is declared but never set, so it is always NULL. Cleanup the unused rf_set_sens variable. Remove functions _rtl92e_wx_get_sens and _rtl92e_wx_set_sens which always returned error code after removal of rf_set_sens variable. Cleanup unused max_sens and sens variable. The patches are required to be applied in sequence. Changes in v4: 1. Split changes into patch series per feedback from gregkh@linuxfoundation.org Changes in v3: 1. Fixed description to fit within 75 chars 2. Added suggested tags per feedback from philipp.g.hortmann@gmail.com Changes in v2: 1. Removed function definition rf_set_sens 2. Removed usage of variable priv->rf_set_sens 3. Removed functions _rtl92e_wx_get_sens and _rtl92e_wx_set_sens 4. Cleaned up the variables sens and max_sens used in these functions Changes in v1: 1. Fix comparison to NULL of variable rf_set_sens Yogesh Hegde (4): staging: rtl8192e: Remove unused rf_set_sens variable staging: rtl8192e: Remove unused _rtl92e_wx_get_sens function staging: rtl8192e: Remove unused _rtl92e_wx_set_sens function staging: rtl8192e: Remove unused sens and max_sens from r8192_priv struct drivers/staging/rtl8192e/rtl8192e/rtl_core.h | 3 -- drivers/staging/rtl8192e/rtl8192e/rtl_wx.c | 45 -------------------- 2 files changed, 48 deletions(-) -- 2.34.1