Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2484284imm; Sun, 3 Jun 2018 04:50:06 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK0jemv266msKU0OdHmlhyROI5qcE7tX+fFwJXxxVoZfU3v5oJVun6+yXhY/W7dpuwB/P4h X-Received: by 2002:a63:a702:: with SMTP id d2-v6mr14425624pgf.246.1528026606261; Sun, 03 Jun 2018 04:50:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528026606; cv=none; d=google.com; s=arc-20160816; b=cCKcyneL2y8uElRbKhCOIh6cDksUuve1dgQtetAGydxLMjyJDktK2KgbOErs3ZO+QS 5ZnBiboVN6TcjMYKS+RzQF+F7Pbu2aNtiqasARkLmDSKKDQBRaCPFjs5es2XHaNQf1ZB 9T1jugwgbrpMK4yMChheYx0+Rva6frPzqgWEJloO7t5V7YJPUlHpELe8/qxo0qLhavqZ io5Lkw0Fv5rChPUN+ZHb12En9zKYlNiS7F2Jma+0RxG2LhpSxwxDyO7Dc7wdM2ofHLan IXos6VCVK4SercgPqSTFV6P11eq183AoHRTTFbmQp0U4Dbg8H9r66hc5tDEqWxJLdNJU X9gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=A5KwAuwhTSaQhwwO6TTiLF9lC8cBOYPiiK+U2lcEd50=; b=E5Sz+XKgQwGJsq2vKCE+IecH4IFNj4ZOy8ZSUMtchuQKD+vnL2EQUNcehRrOIImn/1 /jNOGrWB5UKYI3Tuu0WSgrL/1e04FNy5VVWOsBAQT7hxIwL/lpDiu+AJmhg7j4VgFhq2 PcLyghqCP72FUw9p95sTri9LbwhDm9RTTm8oI8qq31/AFzlUvaciZErmJzw3s/fTETcL m9v4oa3FcTto/f8EQ1KGJTeXhTKq72eLQMtXok5NilvntkYtqteUzrC8Lki2APiw95de HFm8/tkPivm0yezb+royqVKdanpaxy6fq7K/RMhW04Fnsnp+jlkEThhyNAsFzGHOb8pE OlVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aCDy/ma0; 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 q71-v6si9070511pfd.153.2018.06.03.04.49.52; Sun, 03 Jun 2018 04:50:06 -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=aCDy/ma0; 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 S1751373AbeFCLtV (ORCPT + 99 others); Sun, 3 Jun 2018 07:49:21 -0400 Received: from mail-pl0-f67.google.com ([209.85.160.67]:33914 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751338AbeFCLtT (ORCPT ); Sun, 3 Jun 2018 07:49:19 -0400 Received: by mail-pl0-f67.google.com with SMTP id g20-v6so145285plq.1; Sun, 03 Jun 2018 04:49:19 -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:in-reply-to:references; bh=A5KwAuwhTSaQhwwO6TTiLF9lC8cBOYPiiK+U2lcEd50=; b=aCDy/ma07mblYtWSSA3hsUlD1B1AFuYlcSr9M75hjvnSnqnmE6zgKuidbSLeCVNZel PwsLF6MYFnH/vBIdoPkImE12a5IGEbnLUAnuVmeQzH+eMu1VF1xUws3TkbS+XKaUzpN5 1+U2H83K1D00JyfSbXHibC4zrPkbbpaNedWkli1PsvGj/iGA07RQgU56tOdwVQXjPwGl RKTDtuG+cAETTcE5lQSB2UvsMOiZJHFmEENPsZVFR9yMT4DsDhvVMsXJIX2TtlkzaHyw cNOltiT/0xL4Aqk6y7OqgR0Qa3ExllqeeHDGapiTheQ59/eqyWqMKaiFjz7BVJsqvcNJ xPfA== 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; bh=A5KwAuwhTSaQhwwO6TTiLF9lC8cBOYPiiK+U2lcEd50=; b=eybN5eUIJpYBmrdPJNCkJz5c5G5GcaiBxiQSFS67THLT5piXINhg+Ijpe5jEFBRoaP S9381LEvU/2amXrWvjXCZnX6JWd+LNkja8BVNXPY16gIi5OfHVVFgbCiJ/+p6Zc2rSKF GmUeEdnJpdR3YNirF5D2t2urgzqv3boZVmFFbw7o2N6XRhxCeqJLvn2nKlaA8bTF1LcL 7yQxgCSdWdPULd2cTWWg9KhI99R+ghpd9cQVLqoQrjLnWl2b4yjmOaerXOGAykcxvxTP KwuGc6h1K2xJ9zqzaFnnbq8qaWDQyC7iSWi/gXA9puNS2krg43Z4Y1L1tVxB229Tl0/U TFGg== X-Gm-Message-State: ALKqPwehHRQZ60nMdfP0Xqgm2ma8JSxaTxl+iF1rmkY9C8nj+/Cc7aKw rmLWPkBSsAqXpIogjhJYYdYrJk8C X-Received: by 2002:a17:902:43:: with SMTP id 61-v6mr18151169pla.112.1528026559215; Sun, 03 Jun 2018 04:49:19 -0700 (PDT) Received: from localhost.localdomain ([117.192.158.77]) by smtp.googlemail.com with ESMTPSA id n5-v6sm69419857pff.134.2018.06.03.04.49.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 03 Jun 2018 04:49:18 -0700 (PDT) From: Varsha Rao To: Rasesh Mody , Harish Patil , Dept-GELinuxNICDev@cavium.com, "David S. Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Nicholas Mc Guire , Lukas Bulwahn Cc: Varsha Rao Subject: [PATCH 1/2] net: ethernet: bnx2: Remove extra parentheses Date: Sun, 3 Jun 2018 17:19:04 +0530 Message-Id: <49739fc1c7f725223e88b5e80259ba40bcbaf8c5.1528025569.git.rvarsha016@gmail.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following coccinelle script removes extra parentheses to fix the clang warning of extraneous parentheses. @disable paren@ identifier i; expression e; statement s; @@ if ( -(i == e) +i == e ) s Suggested-by: Lukas Bulwahn Signed-off-by: Varsha Rao --- drivers/net/ethernet/broadcom/bnx2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/broadcom/bnx2.c b/drivers/net/ethernet/broadcom/bnx2.c index 9ffc4a8c5fc7..2306523778d4 100644 --- a/drivers/net/ethernet/broadcom/bnx2.c +++ b/drivers/net/ethernet/broadcom/bnx2.c @@ -3285,7 +3285,7 @@ bnx2_rx_int(struct bnx2 *bp, struct bnx2_napi *bnapi, int budget) sw_cons = BNX2_NEXT_RX_BD(sw_cons); sw_prod = BNX2_NEXT_RX_BD(sw_prod); - if ((rx_pkt == budget)) + if (rx_pkt == budget) break; /* Refresh hw_cons to see if there is new work */ -- 2.17.0