Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2191164pxb; Wed, 9 Feb 2022 12:51:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJyKOI+GZUffBX2XBXdgEGA5bisbwxYmdyX90PsXxFQx9HeSpt5s/ym7JFCsqnZLK43N2EE1 X-Received: by 2002:a62:e116:: with SMTP id q22mr4099489pfh.48.1644439875387; Wed, 09 Feb 2022 12:51:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644439875; cv=none; d=google.com; s=arc-20160816; b=yzwjiKc8hWMmSExKsCQBJkLObHa2zkE3eJ+4qroYVAn+UYnKvi5PVbD7LIMlN/GnfS q7H42wvkiMqOswzrCWELqt1tuvE69VRriix2xpe+Z3Zku4NNgZA8gWA/4kqI2TMfHP5B kA5GLVrACDY2LUJe9L9jXoWaa0xQfZekq0IUJQESC0TRxwFaeD1mGnOz872zwYs+GdZq 9rzVPeseZvsSmkZs6j5zq0IUCgWSCMtFR7Koa/MVvt6B0Sh8CDD4j5bP6Xd/pu9g+Nyh wcGbwD3XkbNWb+/3K9bdzzr8AuyoZOT/40CdbsK+QF3/Iv2BTpi2Edwi9RZ2GLVcUIaJ vhig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=MLbUj1+WmHsBpRePIsYDuUfH8mf0cZbbbnuejmwzm9M=; b=IFt8koA09HNCmzSOLfAo5Z5eoen30EErYaZXLRBR0Ho2UIqkfIUiome5/AcDyb5xtm /sSkLd522jqYIxt5y/V8QOWjiy4rJVH1M644fwXsHVq7oGp0HqR0dERqBvlMA611/k8t Ex8uIsvC1Lyf8p3FWLOSy1WpI+ZaepiSThgoXXFdsrwtIjl18QUjfUKIK9JsW9doDrV5 cbzPsOSUFsGreoaa95Q0fju8+7R4teFC2o6n6YqI1XJNk3aZcZCxK7Z2kxpksAG9hgho r56tW4lqr8bJvIu59/icdkBjmloX75bNtXd6jw34wZeb065sN3UXKPzPKFTI/bNK9T42 vekQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=qYk3kQgp; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id h132si16757912pgc.823.2022.02.09.12.51.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 12:51:15 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=qYk3kQgp; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9C588E040C9D; Wed, 9 Feb 2022 12:20:42 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231206AbiBIUUa (ORCPT + 99 others); Wed, 9 Feb 2022 15:20:30 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:43718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231176AbiBIUU3 (ORCPT ); Wed, 9 Feb 2022 15:20:29 -0500 Received: from mail-oi1-x22d.google.com (mail-oi1-x22d.google.com [IPv6:2607:f8b0:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F6C4E0385D3 for ; Wed, 9 Feb 2022 12:20:29 -0800 (PST) Received: by mail-oi1-x22d.google.com with SMTP id ay7so3702039oib.8 for ; Wed, 09 Feb 2022 12:20:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=MLbUj1+WmHsBpRePIsYDuUfH8mf0cZbbbnuejmwzm9M=; b=qYk3kQgpb35yf4/lPoDS2vVGGv5guIlpIz/GvFpVTdQFiUDDzSnIOVGIacsyDWIV05 MGMTDDH+KrGWFyzekXoO0Vx8m6cN2Q/rzm0smw9EY+5hFQJ6kgvt/RQMyDiWru8XhK/R nQ80LHUozomMdgUi0V8RbLsKASJl530bP6YZgsTmVu/e31/NWpdAV7XJlY94uYr18QQm avbzxDx3yaL3v/6L+1qcCku4cCckaxJ6I5UnohgxhUn5+CgVdEAV7/LvAf9ieSi/+Vsi E04P5eekYUG6RPzsDRyNDOMb3Ex+BPkTaQ8erl8jCVwqd2S507T5VsDCAU3GysTkvV2D mM/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=MLbUj1+WmHsBpRePIsYDuUfH8mf0cZbbbnuejmwzm9M=; b=NHH8tCK32KiXW5jf/CfVi8kdnmkz3i5+ghBKJ0iBma8lgnfc3bpvSUWCpILdefPnIO qgZM3toDqN3ZelwcJt9pvglJu5dk8ZACWaFwHHP8RpeNQAtLtRph6jStKG9SNjtbxG40 EOYR1q50cF2YHWd4pr3yN+vrr1GE7tWpXwkUBry3w9mc9aXJGXNm4uQEXr1KgJqTyCYE W1bIGp2AvArZQ9DC24REzrzeYgBdgRf3z+uthxnM/osQUsMqFt4bQsjryJi/nDfpODXq veBF7pOaaTeYkNdYdwNZpcK0tGLlSPRFXXjWeqODvwB9NKpAlFwd37WORA0XCNYYAEXX MuOw== X-Gm-Message-State: AOAM531wsUF2FAQxdUDpYnEcXPhUxO1+ZyenoqlbB7qVaU1u+/NJwIQu PQQ6L+SlxYTQwy2zMKpX2TQ= X-Received: by 2002:a05:6808:1890:: with SMTP id bi16mr1701247oib.1.1644438027901; Wed, 09 Feb 2022 12:20:27 -0800 (PST) Received: from localhost.localdomain ([2804:14d:4cd8:12bf:758b:9a0d:6e95:934f]) by smtp.gmail.com with ESMTPSA id l22sm7104120otj.44.2022.02.09.12.20.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 12:20:27 -0800 (PST) From: Leonardo Araujo To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev, Leonardo Araujo Subject: [PATCH] Staging: r8188eu: core: Comparisons should place the constant on the right side of the test Date: Wed, 9 Feb 2022 17:20:15 -0300 Message-Id: <20220209202015.29156-1-leonardo.aa88@gmail.com> X-Mailer: git-send-email 2.29.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 This patch fixes the following checkpatch.pl warning: WARNING: Comparisons should place the constant on the right side of the test Signed-off-by: Leonardo Araujo --- drivers/staging/r8188eu/core/rtw_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/r8188eu/core/rtw_cmd.c b/drivers/staging/r8188eu/core/rtw_cmd.c index c7e8602d2097..a9a5453aa1cc 100644 --- a/drivers/staging/r8188eu/core/rtw_cmd.c +++ b/drivers/staging/r8188eu/core/rtw_cmd.c @@ -188,7 +188,7 @@ u32 rtw_enqueue_cmd(struct cmd_priv *pcmdpriv, struct cmd_obj *cmd_obj) cmd_obj->padapter = padapter; res = rtw_cmd_filter(pcmdpriv, cmd_obj); - if (_FAIL == res) { + if (res == _FAIL) { rtw_free_cmd_obj(cmd_obj); goto exit; } -- 2.29.0