Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp948183pxb; Sat, 30 Oct 2021 02:19:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyoOHS/tB+wY91AOGFUoAefkbFBJDModrcm6KEIfJpIXgbaA2qPuxaV5aITByiVE1PRhc9N X-Received: by 2002:a05:6e02:1ba9:: with SMTP id n9mr2809668ili.297.1635585584834; Sat, 30 Oct 2021 02:19:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635585584; cv=none; d=google.com; s=arc-20160816; b=eS8zfliNlSB5Vx21aqUVEgy2JIY2ZVfuElv8xKCYG0pMGG2H5iweBWRf0IrfrBPWI4 NCjD7/be1LXBBRiHqKgsmkmMWOvUgpN+n2YH4Qb2afDq2mdJwGsbvrNHMwsQezBLThQU njGbcOm1FepTVJzTZTY+P3zGjQHnooru4tAAnSDebOPcSp77nmUBgmw11pabfQ04L7TA zWdLcB3DbK0JsLS+BMKd0l/sZU8UKyGA5JX+9WqIwIpt9NXkk/+6ESxskIrKTVDUZpH+ 0oXxPVJxZzS51hoRWob3/WcqYxj1R7BsG/KqCn1qQmdLaTOiG97iopsPe/m8F+LpAwgD GoZg== 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=9ujrp1A2qB6yzyhBrPK63c9r1CQB791AlLbr8oglMGc=; b=kZH1dWBUH4UhO1347V+4qMC/fM85mVtv4y6AFSLScEcILCcIgqj/d14B+oMJ2niKBv Arsg0AZ+zqNwKiNgeKJJbI18vjItZIifNldF8DTgpulUbyuQDjs+hiZfXsmstboOMOew yAAc/ySMG6Uq8s/9UhGtJjHcoIKLkgdTEy3OmwkS4+BkZf9fjSH+Cgzp9kLvtMfAQsg1 TisKhiVNGTWCntUr6LlhfbiM5FNGY/ywfMgV6oufR3NrBQTpfJlzq+NVz3B8g08MwbhE t5MfCKGtbH7Ij6kD2CWq8MqMZpGxNkszbRw6GBXt8R7eBaTLw0HQr0XtRqUIrtk574o4 ZC0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ZbVcbOYL; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m17si9129893ilj.158.2021.10.30.02.19.34; Sat, 30 Oct 2021 02:19:44 -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=@linuxfoundation.org header.s=korg header.b=ZbVcbOYL; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231765AbhJ3JSB (ORCPT + 99 others); Sat, 30 Oct 2021 05:18:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:53170 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230427AbhJ3JSA (ORCPT ); Sat, 30 Oct 2021 05:18:00 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 270EE6101E; Sat, 30 Oct 2021 09:15:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1635585330; bh=7wYyNA1NqK7aFI5a4edIpfAUHN9xvgC5EA9OQH2Kvjc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ZbVcbOYL0bNak9xJzGLyZa//TTebzPVAz2AtZL0vmq95jK7PXTqjo8LyCqdT+iT55 +2IyMOfT5qm2jpBbBZH+yXo1XSvDH601v9CMk9n+X5L8DuJW0wguBdaoBYL+w602oz vKJTVVgT0jZtELaFTp8VYJ/wlQxFie3ZYTkOPw28= Date: Sat, 30 Oct 2021 11:15:28 +0200 From: Greg KH To: Saurav Girepunje 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 Subject: Re: [PATCH] staging: rtl8192e: remove condition with no effect Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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