From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f67.google.com (mail-pg0-f67.google.com [74.125.83.67]) by dpdk.org (Postfix) with ESMTP id 03023E5D for ; Fri, 15 Dec 2017 00:32:30 +0100 (CET) Received: by mail-pg0-f67.google.com with SMTP id k15so4494271pgr.7 for ; Thu, 14 Dec 2017 15:32:29 -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=pW9kstSrqf3nkLdx4hFGJMqzUqnEyQEp8+y9QBiL6gg=; b=CrL/VwWHT8CBj95d3sG8HoLNk7fZWE9weABa/ASrVb0Wd9JY3vdTcdVsrWL1DHAdYg whWYi89QT+k/K+4kYoxj7fZeHbXWOli1fFx5V//dEDl1WFzgG5QY05dznE1o1xt7Fih/ 5gssOw1ph8GN2KD0Svoa1GlQRfk7Qa0xSQIZxtBYnAIR9zKCOZW58PMrLydLM0ZGkUAn 27YckgPHMHfi+3X4aphcYahNENsxfu6N69JyS9h7VrUO/JckckVz0EUzWM56LlaNe1ev cTfnL4d9VELHHpggh2BMWSe7Qyd2mV3cVo0J6TmZg61tXynX/EA5xBXZzsFGmLGNbHJs VgJA== 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=pW9kstSrqf3nkLdx4hFGJMqzUqnEyQEp8+y9QBiL6gg=; b=CQtGWGJr8ymKFGgG4dMB4ZNvBOIf+E/RHROvRCDiQVkpwgTDZyzfoTeX02fevCVzix 5gbNq34DwFt5v0L6BGsSJSj19dnl9MezhR1Y4DPOJDCrP4UcjZ1X0tYH+QkZAQgI3icz lqXV8HHQOrjuQaZPG59a/CxXIf2RAmXPD8qvO+JKk3n/Fz9EQv0TJUcwGXvjKvWV0kX8 0W2FVJSBc9x0VHOJ/JUWH8AqEehULEYRfWEUhrlCOc3VOJOTdeKLx7KDpfg6OFbs1Fzl Qr+/EMy1Nah1ztPzbD0Nbs2OaIUKYF9QYJIaoXVc5FU0Qfs3CXkMAIHiwvQyNODhsUQ7 aTDQ== X-Gm-Message-State: AKGB3mIIsvIEw/bPXjRjpmJ9R11N7VNXL77qVpb9fRsSDUdf938+juAt uZnQz9rUYhfWMweXN4woooR0ZcC9XOo= X-Google-Smtp-Source: ACJfBot3t2wE+ZpTpzzrWRdRuySdvg/E+XrLq+0NAK3X7IrkgworlrzMrET+6nQ3UzzUBrpZk0xE5w== X-Received: by 10.99.95.138 with SMTP id t132mr9907678pgb.66.1513294348939; Thu, 14 Dec 2017 15:32:28 -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.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Dec 2017 15:32:27 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Thu, 14 Dec 2017 15:32:19 -0800 Message-Id: <20171214233221.30928-4-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 3/5] ethdev: 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:30 -0000 Obvious extra parenthesis do not help readability Signed-off-by: Stephen Hemminger --- lib/librte_ether/rte_ethdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c index 318af2869743..c53b28bf80fd 100644 --- a/lib/librte_ether/rte_ethdev.c +++ b/lib/librte_ether/rte_ethdev.c @@ -810,7 +810,7 @@ rte_eth_dev_configure(uint16_t port_id, uint16_t nb_rx_q, uint16_t nb_tx_q, * Convert between the offloads API to enable PMDs to support * only one of them. */ - if ((dev_conf->rxmode.ignore_offload_bitfield == 0)) { + if (dev_conf->rxmode.ignore_offload_bitfield == 0) { rte_eth_convert_rx_offload_bitfield( &dev_conf->rxmode, &local_conf.rxmode.offloads); } else { @@ -2693,7 +2693,7 @@ rte_eth_dev_uc_hash_table_set(uint16_t port_id, struct ether_addr *addr, index = get_hash_mac_addr_index(port_id, addr); /* Check if it's already there, and do nothing */ - if ((index >= 0) && (on)) + if ((index >= 0) && on) return 0; if (index < 0) { -- 2.11.0