From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f66.google.com (mail-pg0-f66.google.com [74.125.83.66]) by dpdk.org (Postfix) with ESMTP id 661D42BCE for ; Fri, 15 Dec 2017 00:32:27 +0100 (CET) Received: by mail-pg0-f66.google.com with SMTP id k134so4498979pga.3 for ; Thu, 14 Dec 2017 15:32:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=IVlkaqQLLy0DISLEM8Odt2tfjqbWOFGxcMCneb97bqo=; b=BEhFIdD9/6A/o/T9JfXwyz4ndmbEx/ww42oYhTeu+XJ+IN4xa5trxQ4JLZhzoj1zqC 9FfpbG6KqRq3IPaRheTvEeVpW37ULsZYc1fuXH6MyMnSEUOO15vBFPLwVFHnj1AdVqV3 MhxLH+w3kMeBocLCuD03o+bUdRVQz55SnIQxB6CtP4EATDe0WhY5gNaMoKdBMtB8l9+u pnf7XDmYwI769tFIWqXbMsM8FZ+oUzdfslo/uiT3NAOf7uHlS6H+J9uFUZfWwsc7ZXgt IU3SdPBLQif4xgmtL320hNWvLLDuL3MYLFUBeD4XG5g34qUyW9Fc9BV7BuCxMBgjDIVL vBpw== 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=IVlkaqQLLy0DISLEM8Odt2tfjqbWOFGxcMCneb97bqo=; b=D3IWjSKuzmP5j5kkDENV3FMipdj29mVzPi77dE87tawTjviLHD47jxkv8QTwC9nCtL 3rwU2brgFs+7ViRqKNl3FF1JQcXzY8eCfqE1Ut3kthKWVKQFz1BJqgLNqANvi9gXOMNN Su+rxAZkCdiHvYSYI61VUIxxvXwJ/iEtQtSR8Qhs2fWoN8OgFRFYDC0GLdNNm+Drp5fP 4awcldbwVWzW+BMdDDaG/to1UOEBmf0EVvsyNv+CV6iQBaepRm7xOug/hlc/S6utyS2m 7Itef6rnsZn59L3DBgSvTqiDSVB38BCUEBwiCr0JxZf7393o6tfpDgiK2ItvUxHa3QX+ /UmQ== X-Gm-Message-State: AKGB3mKoHb4XpM9oxYEuF4G40vkQdKnX41lVAmJg1zd2joTwLAoH8RdB gQpZarCSipl6RV/IAa3RgAOsrmOkLoQ= X-Google-Smtp-Source: ACJfBovip2svxRh21nriDajWkcV+74ucK2yYGw4nPfeVartqhpwezhS3yolBEqGIm5WKbAUaNZO3aQ== X-Received: by 10.98.71.144 with SMTP id p16mr11138598pfi.15.1513294346255; Thu, 14 Dec 2017 15:32:26 -0800 (PST) Received: from xeon-e3.lan (76-14-207-240.or.wavecable.com. [76.14.207.240]) by smtp.gmail.com with ESMTPSA id p87sm9706584pfi.95.2017.12.14.15.32.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Dec 2017 15:32:24 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Stephen Hemminger Date: Thu, 14 Dec 2017 15:32:17 -0800 Message-Id: <20171214233221.30928-2-stephen@networkplumber.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171214233221.30928-1-stephen@networkplumber.org> References: <20171214233221.30928-1-stephen@networkplumber.org> Subject: [dpdk-dev] [PATCH 1/5] bnx2x: remove (redundant) parenthesis X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Dec 2017 23:32:27 -0000 From: Stephen Hemminger No need for extra parentheis around simple if expresssion Signed-off-by: Stephen Hemminger --- drivers/net/bnx2x/bnx2x.c | 2 +- drivers/net/bnx2x/ecore_sp.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/bnx2x/bnx2x.c b/drivers/net/bnx2x/bnx2x.c index 9394f6c50c00..1b36cab32f5a 100644 --- a/drivers/net/bnx2x/bnx2x.c +++ b/drivers/net/bnx2x/bnx2x.c @@ -8137,7 +8137,7 @@ static int bnx2x_get_igu_cam_info(struct bnx2x_softc *sc) continue; } fid = IGU_FID(val); - if ((fid & IGU_FID_ENCODE_IS_PF)) { + if (fid & IGU_FID_ENCODE_IS_PF) { if ((fid & IGU_FID_PF_NUM_MASK) != pfid) { continue; } diff --git a/drivers/net/bnx2x/ecore_sp.c b/drivers/net/bnx2x/ecore_sp.c index ef7f9fea4736..a75a7fa46f69 100644 --- a/drivers/net/bnx2x/ecore_sp.c +++ b/drivers/net/bnx2x/ecore_sp.c @@ -3402,7 +3402,7 @@ void ecore_init_mac_credit_pool(struct bnx2x_softc *sc, /* CAM credit is equally divided between all active functions * on the PORT!. */ - if ((func_num > 0)) { + if (func_num > 0) { if (!CHIP_REV_IS_SLOW(sc)) cam_sz = (MAX_MAC_CREDIT_E1H / (2 * func_num)); else @@ -3419,7 +3419,7 @@ void ecore_init_mac_credit_pool(struct bnx2x_softc *sc, * CAM credit is equaly divided between all active functions * on the PATH. */ - if ((func_num > 0)) { + if (func_num > 0) { if (!CHIP_REV_IS_SLOW(sc)) cam_sz = (MAX_MAC_CREDIT_E2 / func_num); else -- 2.11.0