Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2278158pxb; Sun, 31 Oct 2021 12:01:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxL2EnGdk2iqVBMBxZ/CAytC/5i2MZyMFn5Rh/nsvQFvt5ATtfVPSLgsmdcUgdBfsix5AcE X-Received: by 2002:a17:906:58d0:: with SMTP id e16mr30508454ejs.181.1635706876557; Sun, 31 Oct 2021 12:01:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635706876; cv=none; d=google.com; s=arc-20160816; b=O9x6/vXGiaAz2YvfMB9dPX8ijo8D1l+LFlPHF3H27t/HDN9R+Cl4TfTSt1IJwp4HEQ 5G0QNJy18+m7mGp6Z1hXwK3HDw8DmrskR85Pu0J49Ooz8KjDKfOkWE8HWDeH8VHKBSoa EwrdNsJb/VfET0kkev1PISINKjZ3GRx+PjQMU2FPbKmwrj+jZ2AFlpekow6lqCF/ck1J J2b84D0gFTaRlZ+vAi/qzjnqwdXwHSk1Q3FYqEZdiLQ94XJ8OXp2mDLl4i2diIWd1ofy KiBoLd94yL2nN4u6/m7f1TVs0EsWMfzEB10UFXDp1MovWGMEJp+w51qdqBw4728UyVRx SP3g== 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 :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=OwqCv2tOwFOSxBfcgnYlFpnN8ZNJu3pDOrEmFOrLeB8=; b=S5TmtpOvkuEEc+CmrHcEfh9BtoEcFse5Y+sgRaO19bR3BagAfWXaZKnUdP0ceZCAvp raoA66sooPEc9FAGzGQI7VRualRTTN9yWsRYC62UKPbOAODj6wlt2Z0OBhedCwk7L02l BENhWP74kLrglOL1bRFfu/lFLwINNJpR/5vjB7jvIg42eDFTe2NnhwT+h9OKXVF9FatV 8ReUZWHSDEeeuCVgqSzdsbU314Dc0li3zVkoGte89nylnsvpKSyI4IBJqENoTPLwBz52 CXlPT55vWPrq8UCTNhbAhoT95FoPmEHZsTDhmGJRjzZDlHZER33HmH/oZPvayNLIp3K8 Chhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=W3yRH4Zv; 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 w4si24792541edc.437.2021.10.31.12.00.48; Sun, 31 Oct 2021 12:01:16 -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=20210112 header.b=W3yRH4Zv; 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 S230225AbhJaTAm (ORCPT + 99 others); Sun, 31 Oct 2021 15:00:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229732AbhJaTAl (ORCPT ); Sun, 31 Oct 2021 15:00:41 -0400 Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86F4AC061570 for ; Sun, 31 Oct 2021 11:58:09 -0700 (PDT) Received: by mail-pg1-x535.google.com with SMTP id q187so15289254pgq.2 for ; Sun, 31 Oct 2021 11:58:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=OwqCv2tOwFOSxBfcgnYlFpnN8ZNJu3pDOrEmFOrLeB8=; b=W3yRH4ZvXBqulzltQyZ3NdOUJbLxK1R58RuW5mU6v3tTzIiharpYuauFfOPqliARVP WczkS/+dkkJXZmA/sldBL9u2xTXtcPeIfgMRYwhawKAtqKXS2hYbFD4/PO9HivT3je8b rxwI3ZTJpIUdTZPDfK1nDah9ZJCwHF6zvWFi30UXSutbXfb7Qcc4v3R02AZI8X8TE8To GN8qr4n/JgCrOFBbfHukpBEtIZsaW8LuZefkDxXtbpe6Scqg7McxxwlmSdpi94Y4/boo 4YzsqTV8tvDJhy6Ur+YVhbB5H3HqB5MvxrJNRjLwRksrRkaN+Ww6BZ0VPOERVvIJBQw5 vDYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=OwqCv2tOwFOSxBfcgnYlFpnN8ZNJu3pDOrEmFOrLeB8=; b=KZT7bmcmieiksFm2Nsh4OuntXO9la+YpkYQwQR8UGzPeYmWSPgOqsVwrbPsTms/g4A LxliZ1w+S4xeM8JVv6yl6zBYT1LGuzK8tcWce7/bSEZnLz/ZhUhfNlR2xYr3a1ZdW6yd 2v4vSV0mA1z2BwJobNjplTS2zzZSMFr3uB90jHKsmlTm3uIt0D8GfPthQk3XPVtDm+vI HHDAfZjnGXvFBhwqoXI26VZ537+RxyYLxR3ceSBE4fxJk2VEg0djCnMmMuI733o/6tlP Zb+TbC3N+waXAE4X6zQxUEfX8JIcuQJYP6wlelPIuAnaUxMrJtBhR5WDq0aBgvvYZ6Bp 1e2g== X-Gm-Message-State: AOAM532TUBDjvzyxyP49DdAxDZXVVwOqVMJcqUaC12HIH5KDagj4Uoai SeAT9wHRoqglwQOdPg0KNfw= X-Received: by 2002:a63:e24b:: with SMTP id y11mr18096090pgj.452.1635706688888; Sun, 31 Oct 2021 11:58:08 -0700 (PDT) Received: from [192.168.1.2] ([59.95.88.136]) by smtp.gmail.com with ESMTPSA id c4sm13697578pfl.53.2021.10.31.11.58.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 31 Oct 2021 11:58:08 -0700 (PDT) Message-ID: <9a10f72e-b5d6-7c9a-50d4-cc750454ff2b@gmail.com> Date: Mon, 1 Nov 2021 00:28:02 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.2.1 Subject: Re: [PATCH] staging: rtl8192e: remove condition with no effect Content-Language: en-GB To: Greg KH Cc: dan.carpenter@oracle.com, will+git@drnd.me, mitaliborkar810@gmail.com, eduard.vintila47@gmail.com, zhaoxiao@uniontech.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, saurav.girepunje@hotmail.com, Pavel Skripkin References: From: Saurav Girepunje In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 30/10/21 2:45 pm, Greg KH wrote: > On Thu, Oct 28, 2021 at 12:04:43AM +0530, Saurav Girepunje wrote: >> Remove the if and else code section for variable pHTInfo->bRegBW40MHz. >> Just before the if condition variable is assign with value 1. >> So if condition check for pHTInfo->bRegBW40MHz is always true. >> >> Similarly for the variable pHTInfo->SelfMimoPs value '3' is assign. >> So if condition check with value '2' will never be true. Remove the >> if condition check for pHTInfo->SelfMimoPs. >> >> Remove the extra blank lines from HTUpdateDefaultSetting function. >> >> Signed-off-by: Saurav Girepunje >> --- >> drivers/staging/rtl8192e/rtl819x_HTProc.c | 16 +--------------- >> 1 file changed, 1 insertion(+), 15 deletions(-) >> >> diff --git a/drivers/staging/rtl8192e/rtl819x_HTProc.c b/drivers/staging/rtl8192e/rtl819x_HTProc.c >> index 3b8efaf9b88c..6925654dbc03 100644 >> --- a/drivers/staging/rtl8192e/rtl819x_HTProc.c >> +++ b/drivers/staging/rtl8192e/rtl819x_HTProc.c >> @@ -72,34 +72,20 @@ void HTUpdateDefaultSetting(struct rtllib_device *ieee) >> struct rt_hi_throughput *pHTInfo = ieee->pHTInfo; >> >> pHTInfo->bAcceptAddbaReq = 1; >> - >> pHTInfo->bRegShortGI20MHz = 1; >> pHTInfo->bRegShortGI40MHz = 1; >> - >> pHTInfo->bRegBW40MHz = 1; >> - >> - if (pHTInfo->bRegBW40MHz) >> - pHTInfo->bRegSuppCCK = 1; >> - else >> - pHTInfo->bRegSuppCCK = true; >> - >> + pHTInfo->bRegSuppCCK = 1; >> pHTInfo->nAMSDU_MaxSize = 7935UL; >> pHTInfo->bAMSDU_Support = 0; >> - >> pHTInfo->bAMPDUEnable = 1; >> pHTInfo->AMPDU_Factor = 2; >> pHTInfo->MPDU_Density = 0; >> - >> pHTInfo->SelfMimoPs = 3; >> - if (pHTInfo->SelfMimoPs == 2) >> - pHTInfo->SelfMimoPs = 3; >> ieee->bTxDisableRateFallBack = 0; >> ieee->bTxUseDriverAssingedRate = 0; >> - >> ieee->bTxEnableFwCalcDur = 1; >> - >> pHTInfo->bRegRT2RTAggregation = 1; >> - >> pHTInfo->bRegRxReorderEnable = 1; >> pHTInfo->RxReorderWinSize = 64; >> pHTInfo->RxReorderPendingTime = 30; >> -- >> 2.33.0 >> >> > > Hi, > > This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him > a patch that has triggered this response. He used to manually respond > to these common problems, but in order to save his sanity (he kept > writing the same thing over and over, yet to different people), I was > created. Hopefully you will not take offence and will fix the problem > in your patch and resubmit it so that it can be accepted into the Linux > kernel tree. > > You are receiving this message because of the following common error(s) > as indicated below: > > - Your patch did many different things all at once, making it difficult > to review. All Linux kernel patches need to only do one thing at a > time. If you need to do multiple things (such as clean up all coding > style issues in a file/driver), do it in a sequence of patches, each > one doing only one thing. This will make it easier to review the > patches to ensure that they are correct, and to help alleviate any > merge issues that larger patches can cause. > If you wish to discuss this problem further, or you have questions about > how to resolve this issue, please feel free to respond to this email and > Greg will reply once he has dug out from the pending patches received > from other developers. > > thanks, > > greg k-h's patch email bot > I will break this in multiple patch , One thing at a time. Regards, Saurav