OSDN Git Service

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)
commit35ff765f8d508e56d09ef470395324298550c415
tree1b83dd3496992a155871755c2899198d5302469c
parentbd10d459056fa396273739ca38bdfee4e46680ae
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