Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp6341767imm; Sun, 20 May 2018 00:42:00 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpigJxiupNzGLzrbdnL8JgaH1yvO1x4/HzLFRM/QbtfgudZD7qw+EdcmW6wuuMGLEqLM0x8 X-Received: by 2002:a62:3dc9:: with SMTP id x70-v6mr15346203pfj.85.1526802120098; Sun, 20 May 2018 00:42:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526802120; cv=none; d=google.com; s=arc-20160816; b=Wx3v0lkm+Ev4O2+u0i64a4LRCfOd6EOx9E0pfY/jKQvIGfxNz6fXHPcZy+u21LDyhu t5QBypLaNgC/pxhhxiOV/8PQpto4+hPpTVdxAQCOTQD+uWlbM3e7InypstewH3K2cAIa cFkgnn6MxMQk++9jzfsHRyakTmh8Gjw1BJSZ98t9ZiYLsKrQkegn6euqr/zzws6LxbLZ bd5BZU7G15BSEK0u1wpGt4rCXrKkbB5QNwyl6gyIVangZjHzzrNkpkvHyBP+VFWJGvWR op9P2YeFpaWvOT8wrS8jZevM7l14qvmM03CBzv4WIf6Da66AlJrNgghL5M+rL/3Ptx3g R+IQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=yr7QfZU8mUHzb4czsmXiovnDrATUTmjjAWQDy7mkeEQ=; b=po8o5JRI9DhTSJy6qWgqgEIgWmS8+9BlEQZ/0wzvv9rGNGnm+VAJCUOtLlKu5TqId3 p34l24iEAtHGF9YmmN0WWkybITVgK/VKTXQ7wKRZr01m80Ysw8h2Mors6VBSTcz5Ctct JXopvFBp70njBjnIV/sW1I6IRkL7U4cHULkL+HqIKPLl+kjHkoiT+nxzSJI4LbWtxQst 2hLNcNLCl3XY9Y/zovlCUpJx65cK/tgZJ4g/jZtMy7/2B1Fc3ee/eZpvnYADu9lu/hhV 6ft99EPMPo2OcQDg2GDG2/neGiEu8tVHkw4eLNl54d5tsuhdTuQwKY1ReZg4MMGAvADD tJ7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DtYIH5Zd; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k17-v6si11345221pfj.310.2018.05.20.00.41.44; Sun, 20 May 2018 00:42:00 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DtYIH5Zd; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750936AbeETHld (ORCPT + 99 others); Sun, 20 May 2018 03:41:33 -0400 Received: from mail-pl0-f68.google.com ([209.85.160.68]:36863 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750800AbeETHlb (ORCPT ); Sun, 20 May 2018 03:41:31 -0400 Received: by mail-pl0-f68.google.com with SMTP id v24-v6so6969347plo.3 for ; Sun, 20 May 2018 00:41:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=yr7QfZU8mUHzb4czsmXiovnDrATUTmjjAWQDy7mkeEQ=; b=DtYIH5ZdMtSLqeVlhnrzIZE7ckRLsKqZgpKePep0nXtTLbA6qtwoYUdd5j8MUtLyyf FdKfJqPXzowE8uYgo98YRNWbvzVXeOCMyfCC7OhBEKgrqhjhkS+X68bQTkSQMNvet2yc KDhRVE24IZkZxlNMnR15YNpZo8kxVPzKe19fX+jCOOcS8EncdUNsnry9qrn/ptkwJe+z lPsI9y4a7qQZdVjiOlqKbqeOG20PDeOWM+hkKxG0GYUZQFzrhV9zyFpKL3vemngLoiD3 1931PnvhPKWNfTqot7SIfHM3rSZytB3oP8NXRrzjuwllNPNDow52B6ATEvGr/ZHpoZuP ZEAA== 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; bh=yr7QfZU8mUHzb4czsmXiovnDrATUTmjjAWQDy7mkeEQ=; b=oa65mqng9/k1I5onebBVpPAz2LV4x/7KYEe5FybQa4YeDyy1uMHak7xfgHob13TvXn Q99JoQwYCyDYr4BP5NmRtGf4AOjiaibzHpVnpud/p/TSuPr2OqX9fbvls9Mm83+eba+d /VrcKllvS9kxTiBuoeO5PLZGIPfH+aQrBQbeGuWzx1FKFgA23w8Cpq4mnC6cbyevPNHQ 6CH/kcJntqd56mAMNilz/Ri0DZhz+l/U4pGNqhRHK4sBa3uclH8kAun6V6hh6w6n6E0k OVN53oUnn0dXys1Mz8lCyPK+vqziKuN2ViwmpUTEnrQLNkJTW4dAJIHvM6TLspTd1eqF ajhA== X-Gm-Message-State: ALKqPwcJ13ovY6I4jPiQwJej4cY7ijmQrXJsWIdjkZhWGmOoKBLKH6yA ASUmc49HkCCEYOYB710Nzso= X-Received: by 2002:a17:902:a711:: with SMTP id w17-v6mr16029779plq.292.1526802091173; Sun, 20 May 2018 00:41:31 -0700 (PDT) Received: from localhost.localdomain ([2405:204:5193:3da0:6927:8580:60f1:a05b]) by smtp.googlemail.com with ESMTPSA id v14-v6sm17967931pfn.105.2018.05.20.00.41.27 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 20 May 2018 00:41:30 -0700 (PDT) From: Varsha Rao To: Mark Fasheh , Joel Becker , ocfs2-devel@oss.oracle.com, linux-kernel@vger.kernel.org, Lukas Bulwahn , Nicholas Mc Guire Cc: Varsha Rao Subject: [PATCH] ocfs2: dlm: Remove extra parentheses Date: Sun, 20 May 2018 13:11:14 +0530 Message-Id: <20180520074114.7760-1-rvarsha016@gmail.com> X-Mailer: git-send-email 2.17.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove unnecessary parentheses to fix the clang warning of extraneous parentheses. Suggested-by: Lukas Bulwahn Signed-off-by: Varsha Rao --- fs/ocfs2/dlm/dlmthread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ocfs2/dlm/dlmthread.c b/fs/ocfs2/dlm/dlmthread.c index 838a06d4066a..074d5de17bb2 100644 --- a/fs/ocfs2/dlm/dlmthread.c +++ b/fs/ocfs2/dlm/dlmthread.c @@ -531,7 +531,7 @@ void __dlm_dirty_lockres(struct dlm_ctxt *dlm, struct dlm_lock_resource *res) assert_spin_locked(&res->spinlock); /* don't shuffle secondary queues */ - if ((res->owner == dlm->node_num)) { + if (res->owner == dlm->node_num) { if (res->state & (DLM_LOCK_RES_MIGRATING | DLM_LOCK_RES_BLOCK_DIRTY)) return; -- 2.17.0