Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp947433rwd; Wed, 7 Jun 2023 08:57:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7BIXPcny1kCWv7jWxY+jXjPRIJw2HUjauSZ0AUtL70oZivh3G1yghcd0MsrbK9vrDKCoQ4 X-Received: by 2002:a17:90b:3714:b0:255:54ce:c3a9 with SMTP id mg20-20020a17090b371400b0025554cec3a9mr3146248pjb.24.1686153440694; Wed, 07 Jun 2023 08:57:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686153440; cv=none; d=google.com; s=arc-20160816; b=sZ8OlNwcJe1/YAFqUwoDtxEGYnjifhRFcflAL3PUIZyTJwpqOl5q7CTJcFfvQOVqGD 6hdy1KUdSbvNKt/ClXoCSHPPp0VbOz+tk3b5lpQ70oV96nr5MOcCRrlrtxF9m7Ux93dZ tDkzQNXxLiAqPeeygI9pJXdALBTjzMUnIdqr/QH7QL1GVuLETtuAcvHUP070S98GY1r4 QAqlTjshETod4+VYAp8unNiIjZq7UE7GGH7jPZIcgAyeuDvPnFXZCbj5dZFm99Rz3ijW Y5k47SNLVDFRZTPoHOioD590s9ZCeKu7YUSski60c28zDhfxjYH0VW4USTk270jxxqOm TvNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=KH8Z1a3lx04BjjGgQh8aDWIlPdF1CYV0Q+kaQr1wwYU=; b=Bhn7QmgVhlkxwyWM00VTQDKNoq/wVXnZlfLTnc8s8uRy/ZMMJdTs+GM8Y7mdlQEruH Eml3rbvOHgNSdIVyUh+AF4hH9aHRtJHxwto8+8VNm9OD6QH6zRA4kyupE4rVJVO2wGKz dEAzS7CfADO9HiiB43+FIMWt1TyZkG6VmuGhsZwh5IZXt92qt/xe2omCh6+JTDqMtPi6 gmuTf6fC1LeHQHbOF6dZharESt6GA5yQ0csNIrvDM5aXAf5A8fj9N+LLdjPERtXt/uBN M0E/6O5Sf44JtkDPUmDsvPYxy8XHwz0Ukmux4VGHsawLaeLezhpVfm5iTvi5y77MjN0j Lcvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="RPz/yVLP"; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a5-20020a17090a8c0500b002567ce1c798si1275745pjo.137.2023.06.07.08.57.08; Wed, 07 Jun 2023 08:57:20 -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=@linaro.org header.s=google header.b="RPz/yVLP"; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240759AbjFGPHb (ORCPT + 99 others); Wed, 7 Jun 2023 11:07:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235568AbjFGPH3 (ORCPT ); Wed, 7 Jun 2023 11:07:29 -0400 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C35F11734 for ; Wed, 7 Jun 2023 08:07:28 -0700 (PDT) Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-3f730c1253fso36413705e9.1 for ; Wed, 07 Jun 2023 08:07:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686150447; x=1688742447; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=KH8Z1a3lx04BjjGgQh8aDWIlPdF1CYV0Q+kaQr1wwYU=; b=RPz/yVLPBvrSoUXI4bmqeFypmd4VQR+o8OHdrINgHbgrp/k7jrVOrjde4qcvKLsL1F OmpuDXucztTOMvaaI5Ro0E9arPla6VDp6H35i6sES8gBoQTqfL6qwgi1rWJKN9GMwKKE 4zMW5JG+653chqLbFD3Kj0JVzDRRVILqLlufxrwKmcykTVfpZxy7CmlQBuaeocIjTdZq pwpJ5iDwxsh7FyZuqgiSDfD+NaLJmjLosA6KD5e5nyJ8fR3M86x15HPVZhjQFA6xrVeX SNW2mrUz+4WK3FE6hNiS1cfuCvTODSDBuTjrhvs3KdCW7/3pLCOucs8YQ7d8hxcJYlG3 08ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686150447; x=1688742447; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=KH8Z1a3lx04BjjGgQh8aDWIlPdF1CYV0Q+kaQr1wwYU=; b=h38W4EkEYh5+5VdPMiE0XZVBLYVqpIr+bzNEUln8e3otIXgoFVUyox6rjxhB//48JU ZFMHSpLfuqq8WWMmJLgA/C75w4HEVShsqm4fl5YPHJ3IsLjBxRiNqnsdcMbmWMflvTsP 9zu6shPys0TJIvYq5IISVdTHb5Xn0SVq4lLZPNLqIY2TznWkzJGUCTangvdlnte5pYSW PmbCyiuEZ+kNX1PBoaEr1LaLPhpFUNwEQ/piZ5JX9PC0euSlsaV/N/9sz4cwFnMcc0go WhGQsXeGL/BJ7Udwu0cg6vuqH/0zgi9QxJIXwKftp0YLXgLUxFy5w23FztiIRXCp1lBi ksDQ== X-Gm-Message-State: AC+VfDwUVHXFWfQxfF8Kp9aW0w/PlwAov2BJis8iXxzngsdFjk/I+ocn UEOXSOPZ8aRQd9vJ16VNB3T/v600YiCCKjUFr9Y= X-Received: by 2002:a05:600c:2150:b0:3f6:58ad:ed85 with SMTP id v16-20020a05600c215000b003f658aded85mr4808156wml.10.1686150447182; Wed, 07 Jun 2023 08:07:27 -0700 (PDT) Received: from localhost ([102.36.222.112]) by smtp.gmail.com with ESMTPSA id v4-20020a7bcb44000000b003f7e4d143cfsm2446750wmj.15.2023.06.07.08.07.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Jun 2023 08:07:25 -0700 (PDT) Date: Wed, 7 Jun 2023 18:07:22 +0300 From: Dan Carpenter To: Yogesh Hegde Cc: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/5] staging: rtl8192e: Remove variable SetWirelessMode Message-ID: <01a162c5-f0de-47b1-97e7-8a451a89df80@kadam.mountain> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Wed, Jun 07, 2023 at 08:31:41PM +0530, Yogesh Hegde wrote: > The variable SetWirelessMode is set in only one place throughout the > driver. This patch removes the variable and calls the real function > directly instead, eliminating the unnecessary indirection. > Additionally, the removal of the variable aligns with the checkpatch > guidelines by removing the use of CamelCase. > > Signed-off-by: Yogesh Hegde > --- > > v2: Removed the variable and called the function direction instead of > just renaming the variable as suggested by Greg Kroah-Hartman > . Reviewed-by: Dan Carpenter regards, dan carpenter