Received: by 10.213.65.68 with SMTP id h4csp716227imn; Fri, 6 Apr 2018 07:45:40 -0700 (PDT) X-Google-Smtp-Source: AIpwx49mQr7b+gdlmQREkGTPVpWcXDoXN0wXUC/vJHyuDhjWHNC4aBNexf0LfnHAUbTH8EUS/kcV X-Received: by 10.101.99.26 with SMTP id g26mr18256084pgv.442.1523025940038; Fri, 06 Apr 2018 07:45:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523025939; cv=none; d=google.com; s=arc-20160816; b=g7V4oeQfYd12bwr50yfI44dl/s5RfIicMXY5QyYX7Yz8bVOAUl/xn//q1Ert8PbBWm WXeJLX0ppM4bFDzyZB9CfmWpND8zkc4M4NoUDI1D/VMqlIstaYnq4iNjeimEFQPNBfwC A2uP6GVRfBvXQaJMZwVQsvuULTQeZKSJkYqw7jh7dziu1NqvPD5jIFJ/JGZlRRrYThRX B31+H6bMTB19yXyjZ+WTaahnHlJPcESw3jxM5rJ+SAP+aVfHaCWTTGjHjhchj5a8Puuv OQTEVNj4AiXXuokn6dwbWZO4boiI4MenO8Lnk5g8SjJmxg2pcGInNANQzEzolEz3Gw+6 MZOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=GayA/aGEEPHo92JaXZ5/hf0KI1npDTwDjILAV06DzZ8=; b=eNhXAkwYbOZdhqi69DpSLTcktY/zEQ+q6wginT2QN4eaC1cvGv0Gffnu2aAUFgEik8 a+M7v6XGWECa2IBpSLLgxnLnyh0dvpRZZsD6nRkL2J2mx95s9ZEXTe863HLmL6uuRxBQ OR7BltQmVL6qw5KtMkLF/Qn05T7wY9XKeO2sYYNuciKPSmDFZAqpjLYssbVLFo0Xqv5u dVuwELxc6kgdSHQ25gNEogDiBCcf28SDAdV87rgooap9d1qAdSfVj13wjJjRBX7Nppvi s2lHUNRlbrzcdD7mlgbBo53XlHeo584Blbdk+GPzahiMRGLfu7RnLoN7aoK+6voQGoQW 2TZQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 186si7290267pgi.821.2018.04.06.07.45.25; Fri, 06 Apr 2018 07:45:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755768AbeDFNeI (ORCPT + 99 others); Fri, 6 Apr 2018 09:34:08 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:58152 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755734AbeDFNeE (ORCPT ); Fri, 6 Apr 2018 09:34:04 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 55197D0B; Fri, 6 Apr 2018 13:34:03 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Matthias Kaehlcke , David Sterba , Nathan Chancellor Subject: [PATCH 4.9 031/102] btrfs: Remove extra parentheses from condition in copy_items() Date: Fri, 6 Apr 2018 15:23:12 +0200 Message-Id: <20180406084336.040019697@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180406084331.507038179@linuxfoundation.org> References: <20180406084331.507038179@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Matthias Kaehlcke commit 0dde10bed2c44a4024eb446cc72fe4e0cb97ec06 upstream. There is no need for the extra pair of parentheses, remove it. This fixes the following warning when building with clang: fs/btrfs/tree-log.c:3694:10: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if ((i == (nr - 1))) ~~^~~~~~~~~~~ Also remove the unnecessary parentheses around the substraction. Signed-off-by: Matthias Kaehlcke Signed-off-by: David Sterba Cc: Nathan Chancellor Signed-off-by: Greg Kroah-Hartman --- fs/btrfs/tree-log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/fs/btrfs/tree-log.c +++ b/fs/btrfs/tree-log.c @@ -3664,7 +3664,7 @@ static noinline int copy_items(struct bt src_offset = btrfs_item_ptr_offset(src, start_slot + i); - if ((i == (nr - 1))) + if (i == nr - 1) last_key = ins_keys[i]; if (ins_keys[i].type == BTRFS_INODE_ITEM_KEY) {