Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3225013iob; Mon, 16 May 2022 16:28:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIBJT4DEsglchM3/RcNFpji3aynNc5nbpTP8Xeu5t7JgCpbrkEuEnUsqRVE5Y5ThI2QDTB X-Received: by 2002:a17:90b:1894:b0:1dc:1028:aed0 with SMTP id mn20-20020a17090b189400b001dc1028aed0mr21620143pjb.240.1652743729764; Mon, 16 May 2022 16:28:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652743729; cv=none; d=google.com; s=arc-20160816; b=XaKVBZfGeqvTdoJPA4thz/bRgH7AgtY877g5Ln0yqLDbtWcuzduB3uZgd59JmmIV9g OuwY1GFP0JDlI2I/FGvDgHOJiXSKpKFWNjaUJ8JN40uwSoDhSb1n/uqNSCOA/UEku3aI MEH8XaroEEX2/+4u4Nnp134MTbkG8qu8LOXxpCx3UaH0ydid2oowdh4TQ4uo9ZPZL85q flvXrdR9BGf2OveH+yhIYyXBZIjGSgonlKzO0iTAgAuFPKjavGWrp31MEDZDZ49PpxEd wKiCzjF1WMI9fORgIrVvSrKY6LlskVg8utolDeapeiTlXR+hzovUMRTKLRAErHAEF38J cGyw== 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=uUfVm42ZQNq+014IW1sf3DQHsLIVj6aXXsUckSeTuwM=; b=TIAqUkYGX5DU7EkPIitYPLX9Ybg0FtMzZ/sxltoQPjZ0kiKODC0+xUU8aetR9ApJXf 4YZC5Oio50SZPZQstZJHMgs9gGfluxaT51C5bd4j7M9RfnoGB9DOou7UiMtObIQCxHA3 CICUyPuAJa2ItxI6wDAO0gsuOxylWImOhJwDfX1tpKcUe9sBaxp86cwxIBo9frApPXSD 7X2EnI0DM3cfZ/M31uVorMR/9TFnIXUYFL/jUFKVu4jA97QdPZv24hexI5zn9jGZVjcz XfY10zpbEdTPeYVNAoQ58YGGTZHVitXmDmJNHQWRvkilipVX1S4QNkcjepblCM1dqLy1 4CDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=V+moZ65x; 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 p123-20020a625b81000000b0050aca65bc3dsi12399689pfb.169.2022.05.16.16.28.38; Mon, 16 May 2022 16:28:49 -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=20210112 header.b=V+moZ65x; 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 S1346625AbiEPTyz (ORCPT + 99 others); Mon, 16 May 2022 15:54:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346243AbiEPTu3 (ORCPT ); Mon, 16 May 2022 15:50:29 -0400 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 266FE43EF3 for ; Mon, 16 May 2022 12:45:24 -0700 (PDT) Received: by mail-lf1-x129.google.com with SMTP id h29so27687406lfj.2 for ; Mon, 16 May 2022 12:45:23 -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=uUfVm42ZQNq+014IW1sf3DQHsLIVj6aXXsUckSeTuwM=; b=V+moZ65xYCfiJkcirAAUUuL5GWd5JL8+6D06wvLfUPuwIY6fNQFLXCAGe/bRJTef3D dDtxNiVCSGvpF6a+vuzD4/4m62cQbzbEa8GF7YowgtPbzyuEmFkzUdXjuKBlkS0V9dZn yfUZ0Vt/Q8KvCThJcOvDYklKjRzc7VRy+mapzNeeCaAw0lICrm+n0tgI9iRkNlBhdAgM c/uBJL9pO7GAr52HJyVUOvhXHfJghKczv5N1p8pOCsztPc0Zz4SA/FsN20HeHrsRzHJ4 cn/uR0ZaUd4zFd8jIsYLDI0waodll597mK8FXXX/t2TaVZcv8Ya26f3XMJonPjDAar7F FQjw== 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=uUfVm42ZQNq+014IW1sf3DQHsLIVj6aXXsUckSeTuwM=; b=Z5wYL8qXPAUjF2FbCBTfsRpDUX9iGmzgDxU5V1BFqlZw0RwZeEC+c214pEBc69nPHy hx8BJcY6twLM1LGNeOx24QKulkzfr1VHVIyklwDx0y82pK1eVf88EHJlwSbAG+AYQeAJ HYQuGFUTZ0/ZSKkEdZe4yrbXVyjgf/gS0w6bGGPsbWnfcSYlk5Y82wgG781hKeOgQ/gP 7kl+7Hyvw+XLcBDzFMzPQMLRquqN81CPLBaEyPLclkt1SvG2CeP0xZmsGg+4Yh4z7E9n vnOknkuZXn5X8gpTEZOi9UvWq5IGwzjEemlUbyHR9U1PqLPwG87kLS+/lx2rTGAlvA1Y YVxw== X-Gm-Message-State: AOAM530cTK6cq8J+6lF6h2mftrZG5R+Vasb/woDMuS4J0jQ5e/PAVoGZ dgrY21F4twhwU54NKxzn2GkBAygux+Ky/A== X-Received: by 2002:a05:6512:1154:b0:472:65ab:4159 with SMTP id m20-20020a056512115400b0047265ab4159mr13927604lfg.411.1652730322328; Mon, 16 May 2022 12:45:22 -0700 (PDT) Received: from [192.168.1.11] ([217.117.245.216]) by smtp.gmail.com with ESMTPSA id j10-20020a2e800a000000b002539c858cccsm1424256ljg.49.2022.05.16.12.45.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 16 May 2022 12:45:21 -0700 (PDT) Message-ID: <7b926f43-8c6b-6eae-edc6-02dc16376eb0@gmail.com> Date: Mon, 16 May 2022 22:45:20 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH 2/3] staging: r8188eu: fix checkpatch.pl warnings in rtw_pwrctrl Content-Language: en-US To: Vihas Makwana , Larry Finger , Phillip Potter , Greg Kroah-Hartman , Michael Straube Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Dan Carpenter References: <20220516170306.6008-1-makvihas@gmail.com> <20220516170306.6008-3-makvihas@gmail.com> From: Pavel Skripkin In-Reply-To: <20220516170306.6008-3-makvihas@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.5 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 Hi Vihas, On 5/16/22 20:03, Vihas Makwana wrote: > Refactor the code to fix following warnings: > WARNING: Comparisons should place the constant on the right side of the test > > Signed-off-by: Vihas Makwana > --- [code snip] > if ((pwrpriv->smart_ps == smart_ps) && > @@ -356,7 +356,7 @@ void rtw_init_pwrctrl_priv(struct adapter *padapter) > > pwrctrlpriv->LpsIdleCount = 0; > pwrctrlpriv->power_mgnt = padapter->registrypriv.power_mgnt;/* PS_MODE_MIN; */ > - pwrctrlpriv->bLeisurePs = PS_MODE_ACTIVE != pwrctrlpriv->power_mgnt; > + pwrctrlpriv->bLeisurePs = pwrctrlpriv->power_mgnt != PS_MODE_ACTIVE; > Please remove extra space With regards, Pavel Skripkin