Re: [PATCH] net: tc35815: Explicitly check NET_IP_ALIGN is not zero in tc35815_rx
From: Nathan Chancellor Date: Sun, 11 Aug 2019 20:13:45 -0700 > clang warns: > > drivers/net/ethernet/toshiba/tc35815.c:1507:30: warning: use of logical > '&&' with constant operand [-Wconstant-logical-operand] > if (!HAVE_DMA_RXALIGN(lp) && NET_IP_ALIGN) >
[PATCH] net: tc35815: Explicitly check NET_IP_ALIGN is not zero in tc35815_rx
clang warns: drivers/net/ethernet/toshiba/tc35815.c:1507:30: warning: use of logical '&&' with constant operand [-Wconstant-logical-operand] if (!HAVE_DMA_RXALIGN(lp) && NET_IP_ALIGN) ^ drivers/net/ethernet/tos