net/cxgbe: add parenthesis on bitwise operation
PATCH 1/1 net/cxgbe: add 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]
Signed-off-by Emmanuel Roullit <[email protected]>
--- drivers/net/cxgbe/cxgbe_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/cxgbe/cxgbe_main.c +1 -1
@@ -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++)
Signature · 1 line
1.9.1
Quoted 5 lines · Emmanuel Roullit
clang reports the following error:
error: logical not is only applied to the left hand side of this bitwise operator. [-Werror,-Wlogical-not-parentheses]Signed-off-by Emmanuel Roullit <[email protected]>
Acked-by Ferruh Yigit <[email protected]>
Ferruh Yigit
AppliedQuoted 8 lines · Ferruh Yigit
Quoted 5 lines · Emmanuel Roullit
clang reports the following error:
error: logical not is only applied to the left hand side of this bitwise operator. [-Werror,-Wlogical-not-parentheses]Signed-off-by Emmanuel Roullit <[email protected]>Acked-by Ferruh Yigit <[email protected]>
Fixes 92c8a63223e5 ("cxgbe: add device configuration and Rx support")
Applied to dpdk-next-net/master, thanks.
Quoted 6 lines · Ferruh Yigit
Quoted 5 lines · Ferruh Yigit
Quoted 4 lines · Emmanuel Roullit
clang reports the following error:
error: logical not is only applied to the left hand side of this bitwise operator. [-Werror,-Wlogical-not-parentheses]
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Signed-off-by Emmanuel Roullit <[email protected]>Acked-by Ferruh Yigit <[email protected]>Fixes 92c8a63223e5 ("cxgbe: add device configuration and Rx support")Applied to dpdk-next-net/master, thanks.