Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5985595rwr; Mon, 24 Apr 2023 11:49:32 -0700 (PDT) X-Google-Smtp-Source: AKy350b73gh7U4SFwv9XyOxqdV1x2fjiDuNx21G20uH6jhxo/WbKl7acejyvu1saBeWcb97dzFAI X-Received: by 2002:a05:6a20:d2cc:b0:f5:4ab9:2fde with SMTP id ir12-20020a056a20d2cc00b000f54ab92fdemr4792693pzb.48.1682362171831; Mon, 24 Apr 2023 11:49:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682362171; cv=none; d=google.com; s=arc-20160816; b=KoNJuYZv5f+FJbKkWEcOgFU+P8xdWRFFTrpzZymOSJWRjnjXPv+NXoC+Qf443XX4d8 g9V8XWLBT2lJRZxFo7TfZY+CTNijC81np2ThgD4KvJ8THegPwAE6gzGyNG1xIky5KOh5 ge5N28hHd14RCE56Sm2k7keBjZQAzeYm3+bdkjGJZRZJjcEMcLkDRFJkw6FUzz/HOyFB FI9qcd0Igz3YGzXb/59anQAQ5s0Cc0A3RLBFx+kx0WyRie0ZWp7+LiZgnz/G8fsqCJ+X ajLNfSUNU3YcAsm45dl4B1sZVKPTtug7yMSFJ15vji6z6UdAAK5hKyF24LlelnjdNpqV /otg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:to:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=bK4MMoXKg4ULLWukLYcP4UXrLxtpZwZjuZPAMicfii8=; b=UFccXHtwtF9emIUMZgLCQDnxUBN0u71KTMHPmE0xamE0awO0b26Ez3c9CCy05rTAOd mi5yEj2fk1sf6/97maNN4b0oOttqoSqYdCRPJRVwsjl917t0n6ghw/K+P8WsDDwJ3Q3o NDpfGIIWwDH5sXTfriayNSN0MXjvSpLilNL2IeeAEW9NsULu9UR5yW4KDrlbkfYEQ3bt So1SnUA1pEnJAYJV2NCfK/1OsFjVidc7knuvT0MxKmFfwhJgHpI+Z4My0ddfIOSseD0B UmCJTW7rdbERZf3RQ77Je3CGZhCij1KcZF+diqAEoCQ2AZovxiFmrB9stQmT/R+cOUwv xmWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=mvU9HFEh; 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 u15-20020a63470f000000b005143d5f9ff0si11315149pga.357.2023.04.24.11.49.18; Mon, 24 Apr 2023 11:49:31 -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=mvU9HFEh; 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 S232365AbjDXShi (ORCPT + 99 others); Mon, 24 Apr 2023 14:37:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232144AbjDXShg (ORCPT ); Mon, 24 Apr 2023 14:37:36 -0400 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C31B4171A for ; Mon, 24 Apr 2023 11:37:34 -0700 (PDT) Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-94f9cd65b1aso140677666b.0 for ; Mon, 24 Apr 2023 11:37:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682361453; x=1684953453; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=bK4MMoXKg4ULLWukLYcP4UXrLxtpZwZjuZPAMicfii8=; b=mvU9HFEhh369bW2OC9zsu7Te+7wYuxkW+0Yez6er5px0FYYusK0sxE//hdnPKXjOiK d0XFkZjSz+8/eahZLx3BJoeewemyHF9qFDGeYtITvrQj32gmMHt94IVKfmJqhTXzsMNt dpAP7Ww0cnmFTJhhi05Do/ZRA3/ZFVEArQ50HfGWGGCApyP6j9c+2X/bSbtfXzq78Kwa 3b/H53gJFsxaaCU2xb5LERV3TFqSJFAN5fpqW9utandE6cUTIdiWBqxjZDsK+NheGejC X7kftoPR1y6d6Tbkk/beFVJuB1iwbvq2xYwD9yfK4dnqH+Mm65WccDCar+XMw7hp8Y57 YuHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682361453; x=1684953453; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=bK4MMoXKg4ULLWukLYcP4UXrLxtpZwZjuZPAMicfii8=; b=WI31bwu6Why/BfTDeUE3/y/Od6fMhh5C4R1kfrzDtjH/xLoU8qJA3jRD/gqfmv2MaU 2HZ+Sho0h7FHoc1LbRQTX3FhAa5NYkhylZuPwnzMDc2xf96HfAE+s2x//8mikimFB9Dc xnV3Em6TSPwTqD6zlgfiyUBgfdXfCEJ41q2MEXG1aByp8xg5nXbhy4BLNZFgnXqqbmtO cYXCjpMu6TONk75T1rjqzPj6UdJoE7L8N7N0IaNbVMxbQujgTM8s+3EZ4pbhUkfDGjQR HcBb/OrrxaBBf82l04zD+UI/RMxHc3GYfQ3ZwlaxdpBxzlB+ExyAFagUbNA5p9af6Def 0G1w== X-Gm-Message-State: AAQBX9cpzXNMc76vLCmxwFz6uJCjdTUwOuCX4sCGvdBmJDg5HVTh6+qQ q1dOfnilqyiG0MIw89EuSiY= X-Received: by 2002:a17:906:4bc2:b0:94f:31ed:7543 with SMTP id x2-20020a1709064bc200b0094f31ed7543mr12035416ejv.7.1682361453064; Mon, 24 Apr 2023 11:37:33 -0700 (PDT) Received: from [192.168.0.103] (p57935146.dip0.t-ipconnect.de. [87.147.81.70]) by smtp.gmail.com with ESMTPSA id gz19-20020a170907a05300b0095076890fc1sm5820081ejc.1.2023.04.24.11.37.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 24 Apr 2023 11:37:30 -0700 (PDT) Message-ID: <695a4474-9a46-a9ee-2ec5-04dbcb68ca0c@gmail.com> Date: Mon, 24 Apr 2023 20:37:29 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v5 0/4] Remove unused rf_set_sens variable To: Yogesh Hegde , Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org References: Content-Language: en-US From: Philipp Hortmann In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On 4/24/23 20:03, Yogesh Hegde wrote: > 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 v5: > 1. Rebased onto latest staging-testing branch per feedback from > philipp.g.hortmann@gmail.com > > 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(-) > Tested-by: Philipp Hortmann