diff options
author | Edward Cree <ecree@solarflare.com> | 2016-06-15 16:49:05 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-06-16 05:26:26 (GMT) |
commit | 8c91562075e8621f6d9a11cfcf31a71a7203cbbe (patch) | |
tree | bb1611ed9680040a67a954f03f81149744e71bbb /lib/crc-ccitt.c | |
parent | d248953a3ccd218893b5119a0e63058f0dabca67 (diff) | |
download | linux-8c91562075e8621f6d9a11cfcf31a71a7203cbbe.tar.xz |
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>
Diffstat (limited to 'lib/crc-ccitt.c')
0 files changed, 0 insertions, 0 deletions