Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3564035pxb; Tue, 7 Sep 2021 02:32:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2tzIBoBP7Vuloyo7rqI3guHvamBqd0YD/7oi6ruwrZTt6KWQvuC1842z8cFPY99Lf5Hag X-Received: by 2002:a5e:8e4c:: with SMTP id r12mr13281504ioo.73.1631007159549; Tue, 07 Sep 2021 02:32:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631007159; cv=none; d=google.com; s=arc-20160816; b=otb05r+sNmWkusNZ9OaMt0kWkh/xn7Vhklz97sTrLeEKh0rGbVAMXw+U8bGAWWB0z3 dyl51aJvrwkH63EYetat/5MmL6PGs4k7H8MTpxlypSWn5GPTivb45vfHh0uNj5aGHWGf 9nUdjYV64Ro56iq+Z+ZHKL3gYdkMYHM87n23GylJ2CRqV2TDSP8/GYJYzPrtNLM4+MWr mVTI3hjEGylhz8Qz6wUYZMjtm14szOg+AEoxKNWrwdZ1E2y739AMjNDmgE9nkGt6KZTL UFjRnYQ3fELLhUU1SWli86CvvrogAWymzw6JbUvX4Eb+DrkDZJwNfGFUh2WnqZsAcQnE U46w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=m+LGmeR60FWHgs4xdzy8QblxkagG3b3H0/egfK8g1+8=; b=CevR1nlzZ4L6Tj7xGDWjmqutFRnj7cXwvhqpaAqJI9RPHjMGLuwThwQZ4ybnZ9jm28 1m373tofMGJt0ssKxVe1dG1HaF/a/yC+FHdWKcUEtEelpLkJ88RlXfP5wfGfgRz54lcF 2b5nzcWF1nA8o2Oyrn/EuKi5/DEMV2lzJLhriVzQovAZvs6cpppNZLoedpJ7mKFXrkzh 5IZWpmu3W7QbTYAp7ss/9uhpOq53D4sdxn6BVav+wJbSexEU/IAfb1GVxHpcoxdRM+3F alGKchE7BrHXuXYJ0mkKbdWtIZu/LxENYO44K2Si+Oc7GGksw+qDy4BpTkGPbH7PW/GZ O0tQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jQjc45qh; 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 g1si165114jag.116.2021.09.07.02.32.25; Tue, 07 Sep 2021 02:32:39 -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=jQjc45qh; 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 S242695AbhIGIgC (ORCPT + 99 others); Tue, 7 Sep 2021 04:36:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242685AbhIGIgB (ORCPT ); Tue, 7 Sep 2021 04:36:01 -0400 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B78EC061757 for ; Tue, 7 Sep 2021 01:34:55 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id z2so18082663lft.1 for ; Tue, 07 Sep 2021 01:34:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=m+LGmeR60FWHgs4xdzy8QblxkagG3b3H0/egfK8g1+8=; b=jQjc45qhii4QdoeAi82n4lzXuR35YeMYqgJCNFpS0irFt4T9yQrNR3KwbU3Tjox6Fm 7ZRRvFRTYOj0vVX1p0RDm5qxtXUD5lSWYwq0R+TahkrDUg6hIlVLTSjczZpWs6oM3wzD qULV6zesK39+BPEJqgQA3Gq15hOHH+HX++PNcHmPrVx7w5ueWPrpZrOgtcRIzZpy/TI1 zHmx/meUK5ZXVyQZVcIX4IUOJScHGHpXF/JmJv3XOBwXB2OJrQF3MNllZpchpoUv8fo2 QYsCDVVgU1li+vXQ8m6eIbJVMY5lK3D/JDVnA8CKUJ+Ge/tnG4eAoW3hZcKLIxlsSnsJ 0Vmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=m+LGmeR60FWHgs4xdzy8QblxkagG3b3H0/egfK8g1+8=; b=I+Pw8NXOt8+OV/QrVY1fcX1B2HbVeH1aELLrERg/7UgrCm8cQdAqtCK+Qj9XMv7mD2 8hBhcJb82utrDTQ/aGkPx5PHBndvgGYuwGXqoKikHzz4XUWP5jrO/NiHLroiaCh6lb+i Vc2ntWacSNpEoSkje0xtJ/0upuHg0pkqeS18bDILOFvuwGBs3+SH/Sbt110Vq5Nc+aDv HXtGOZiqGs6alFPhZSr6uLyJjHPriGOGYoxNkZ5bK4d1p7GHeL/a9fP9drCvRrFBn1K2 bZlzwlbS4GyMj2ed3Dc8FI3I/baotZccXHAkyAVNSUN7GJij4KzNgNknORoChJadi0q1 iQfg== X-Gm-Message-State: AOAM530SHnbU1C4fp03F6fcpSuNhe6ULRb7pDmZdXyDE3j4B/Od4BhjP 4eagyR4Vop8MORxTJJJ5r8M= X-Received: by 2002:a05:6512:304f:: with SMTP id b15mr12254996lfb.462.1631003693468; Tue, 07 Sep 2021 01:34:53 -0700 (PDT) Received: from kari-VirtualBox.telewell.oy (85-23-89-224.bb.dnainternet.fi. [85.23.89.224]) by smtp.gmail.com with ESMTPSA id q30sm944771lfb.155.2021.09.07.01.34.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Sep 2021 01:34:53 -0700 (PDT) From: Kari Argillander To: Konstantin Komarov , ntfs3@lists.linux.dev Cc: Kari Argillander , linux-kernel@vger.kernel.org, Joe Perches Subject: [PATCH v2 2/4] fs/ntfs3: Place Comparisons constant right side of the test Date: Tue, 7 Sep 2021 11:34:39 +0300 Message-Id: <20210907083441.3212-3-kari.argillander@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210907083441.3212-1-kari.argillander@gmail.com> References: <20210907083441.3212-1-kari.argillander@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org For better code readability place constant always right side of the test. This will also address checkpatch warning. Signed-off-by: Kari Argillander --- fs/ntfs3/frecord.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ntfs3/frecord.c b/fs/ntfs3/frecord.c index d1477cabe3c7..d3c1c46cfb0a 100644 --- a/fs/ntfs3/frecord.c +++ b/fs/ntfs3/frecord.c @@ -1606,7 +1606,7 @@ struct ATTR_FILE_NAME *ni_fname_type(struct ntfs_inode *ni, u8 name_type, *le = NULL; - if (FILE_NAME_POSIX == name_type) + if (name_type == FILE_NAME_POSIX) return NULL; /* Enumerate all names. */ -- 2.25.1