Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp10411977rwp; Thu, 20 Jul 2023 21:33:08 -0700 (PDT) X-Google-Smtp-Source: APBJJlHLODUiGse2MRs0iiwelId97unuo6pgn2r1q6Nn0vN/R0Yw/IrNT6X5+Bo3jccv1Xj+re81 X-Received: by 2002:a17:902:cec5:b0:1b8:a6be:ea82 with SMTP id d5-20020a170902cec500b001b8a6beea82mr2460515plg.26.1689913988505; Thu, 20 Jul 2023 21:33:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689913988; cv=none; d=google.com; s=arc-20160816; b=Pmb+fvtMrGu/j1Mi03EbYfjhpb18VcllpA/Ly1+oXFUKXOsFR6i6q91N/kVBr7dckV PHWLk61HWWLRBFEAtQdhdzY3xghsbqKVVkHRD+4XzfuWX9ikM1xWWXSZR8ghMfyvBVqa dr0tkzCjTAtKlNNX8csupvzX389i+yDF1wUgDoeixOwDqvlj8/oBaS1qt18/GZImvz+2 c+Bllsu6gz0H0cORx4RGTZsRvpDzyRlbR1VMADZRUtyYEbEJEKGpKBvwd/xqxPUmWnHs HoefGnfuhVfcKS19i+Ooufl4GAtC2QxGDS/Lyf2rR6n0vEOgx/KtNag66+cgSMvwtnxg LxYQ== 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=yzD2cTSw+KbK9n4WA6KgMlgKPPoWkOc62gzwfWH/RGA=; fh=AcENghQVcng5bT6y2M9FNimJyBoDryY2rRS3cKuaWUk=; b=qzFFu7qPgAzaOelAAFNI09HyysfmIOjjDqQ/Cda22hbrIndU/Hej05Pfp5qHjLt11Q Az58lAAMPctxS7A4IzGXWMoAxrpmuHVPykqP9NTj3j3A7qRMX6nsdmwmc8N2Wiu9MqFk go6cY4yMDaVRxVfFCGiOZbEP9pvbKFNuhTxttL3eH4v7Oe7fA0Aq/UDNImPa09cXBi51 y97k3WA3Dc7DkcxRIMsJdzaEzpaB5otnFVJeqfD8xFVVhOJV5y6d7L8YmvywtDGB+Q+p v9nl3qhH7R5fqmizMR3VDEEJ+yhR+Ie8N7cORAWJEUsBRLw0DPDUXX9EffOKFNUZ8NEQ 1k/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=teSdvU7f; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c2-20020a170902848200b001b886728cddsi2129145plo.416.2023.07.20.21.32.56; Thu, 20 Jul 2023 21:33:08 -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=@linuxfoundation.org header.s=korg header.b=teSdvU7f; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230025AbjGUELs (ORCPT + 99 others); Fri, 21 Jul 2023 00:11:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229493AbjGUELp (ORCPT ); Fri, 21 Jul 2023 00:11:45 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E8E02729 for ; Thu, 20 Jul 2023 21:11:44 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C65E060FAF for ; Fri, 21 Jul 2023 04:11:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CB34AC433C7; Fri, 21 Jul 2023 04:11:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1689912703; bh=r6mbA29dSgjLTK5ZkBYqw/al6NFHb8yCLPniDAa5aso=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=teSdvU7fZ21iCoLIEakv35HJaZGC3ROqEbp77jvREfZzGwXWpdKOweIsVbeIHJ6aL Fv7lD4zu2Yi2qeYKx5Pm8OHhNi+rhM2evBfuCrcbNV1kJ4WitB3U8R5CbCgxa31fPf 0ZPTtjB3Ygynoyv8g1vrFeBAb37+Uk8TnDyYlup8= Date: Fri, 21 Jul 2023 06:11:35 +0200 From: Greg Kroah-Hartman To: Sergey Rozhnov Cc: Larry Finger , Florian Schilhabel , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: rtl8712: Remove redundant braces in if statements Message-ID: <2023072157-expediter-catalyze-8ecc@gregkh> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 Fri, Jul 21, 2023 at 06:05:57AM +0400, Sergey Rozhnov wrote: > Extract masked value to improve readability, apply fix suggested by checkpatch. > --- > drivers/staging/rtl8712/ieee80211.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/drivers/staging/rtl8712/ieee80211.c b/drivers/staging/rtl8712/ieee80211.c > index 7d8f1a29d18a..fe53453ab9a7 100644 > --- a/drivers/staging/rtl8712/ieee80211.c > +++ b/drivers/staging/rtl8712/ieee80211.c > @@ -63,8 +63,9 @@ uint r8712_is_cckrates_included(u8 *rate) > u32 i = 0; > > while (rate[i] != 0) { > - if ((((rate[i]) & 0x7f) == 2) || (((rate[i]) & 0x7f) == 4) || > - (((rate[i]) & 0x7f) == 11) || (((rate[i]) & 0x7f) == 22)) > + u8 val = rate[i] & 0x7f; > + > + if (val == 2 || val == 4 || val == 11 || val == 22) > return true; > i++; > } > -- > 2.40.1 > > 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 does not have a Signed-off-by: line. Please read the kernel file, Documentation/process/submitting-patches.rst and resend it after adding that line. Note, the line needs to be in the body of the email, before the patch, not at the bottom of the patch or in the email signature. - You did not specify a description of why the patch is needed, or possibly, any description at all, in the email body. Please read the section entitled "The canonical patch format" in the kernel file, Documentation/process/submitting-patches.rst for what is needed in order to properly describe the change. 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