]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: Refactor checks for invalid filter ID
authorEdward Cree <ecree@solarflare.com>
Wed, 15 Jun 2016 16:49:05 +0000 (17:49 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 16 Jun 2016 05:26:26 +0000 (22:26 -0700)
commit8979f3aed329aba3845dab10aeef2663222f5e94
treebb1611ed9680040a67a954f03f81149744e71bbb
parentc86e403f0f8eeb7f0cfa3c18bc9520d3becbeff6
sfc: Refactor checks for invalid filter ID

Nearly every time we call efx_ef10_filter_remove_unsafe, we first check
for EFX_EF10_FILTER_ID_INVALID, in which case we do nothing.  So move
that check into the function, simplifying all the call sites.

Also, change the return type to void, since none of the callers check it.

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