]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: fix W=1 warnings in efx_farch_handle_rx_not_ok
authorEdward Cree <ecree@solarflare.com>
Fri, 28 Aug 2020 17:50:02 +0000 (18:50 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 31 Aug 2020 19:28:50 +0000 (12:28 -0700)
commit1e50a5657a29d05c8d40c98ae41f14c569d8a238
tree1b83dd3496992a155871755c2899198d5302469c
parent91cc7026e0282fcf633c4576d98f6f4565e8e23b
sfc: fix W=1 warnings in efx_farch_handle_rx_not_ok

Some of these RX-event flags aren't used at all, so remove them.
Others are used only #ifdef DEBUG to log a message; suppress the
 unused-var warnings #ifndef DEBUG with a void cast.

Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/farch.c