summaryrefslogtreecommitdiff
path: root/drivers/net/bnx2x
diff options
context:
space:
mode:
authorStephen Hemminger <sthemmin@microsoft.com>2017-12-14 15:32:17 -0800
committerThomas Monjalon <thomas@monjalon.net>2018-01-05 22:07:03 +0100
commiteb23e8c9af7837d51e182df0bc210f464064a8ab (patch)
treee2e61cbea3308c36324bf440b2bf3b7ff4f1f328 /drivers/net/bnx2x
parentfa620b86e3fae5e0539d68beaa588cedf51b9d9e (diff)
downloaddpdk-next-eventdev-eb23e8c9af7837d51e182df0bc210f464064a8ab.zip
dpdk-next-eventdev-eb23e8c9af7837d51e182df0bc210f464064a8ab.tar.gz
dpdk-next-eventdev-eb23e8c9af7837d51e182df0bc210f464064a8ab.tar.xz
net/bnx2x: remove redundant parenthesis
No need for extra parentheis around simple if expresssion Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Diffstat (limited to 'drivers/net/bnx2x')
-rw-r--r--drivers/net/bnx2x/bnx2x.c2
-rw-r--r--drivers/net/bnx2x/ecore_sp.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/bnx2x/bnx2x.c b/drivers/net/bnx2x/bnx2x.c
index 9394f6c..1b36cab 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 ef7f9fe..a75a7fa 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