From: Emmanuel Roullit Date: Sun, 15 Jan 2017 19:50:37 +0000 (+0100) Subject: net/cxgbe: fix parenthesis on bitwise operation X-Git-Tag: spdx-start~4804 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=1039ee1c6ddfa2ba67e05449147c8e5c2d783cd0;p=dpdk.git net/cxgbe: fix parenthesis on bitwise operation clang reports the following error: error: logical not is only applied to the left hand side of this bitwise operator. [-Werror,-Wlogical-not-parentheses] Fixes: 92c8a63223e5 ("cxgbe: add device configuration and Rx support") Signed-off-by: Emmanuel Roullit Acked-by: Ferruh Yigit --- diff --git a/drivers/net/cxgbe/cxgbe_main.c b/drivers/net/cxgbe/cxgbe_main.c index 7ccf43419c..541fc40eb2 100644 --- a/drivers/net/cxgbe/cxgbe_main.c +++ b/drivers/net/cxgbe/cxgbe_main.c @@ -959,7 +959,7 @@ int setup_rss(struct port_info *pi) dev_debug(adapter, "%s: pi->rss_size = %u; pi->n_rx_qsets = %u\n", __func__, pi->rss_size, pi->n_rx_qsets); - if (!pi->flags & PORT_RSS_DONE) { + if (!(pi->flags & PORT_RSS_DONE)) { if (adapter->flags & FULL_INIT_DONE) { /* Fill default values with equal distribution */ for (j = 0; j < pi->rss_size; j++)