]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: fix unused-but-set-variable warning in efx_farch_filter_remove_safe
authorEdward Cree <ecree@solarflare.com>
Fri, 28 Aug 2020 17:50:24 +0000 (18:50 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 31 Aug 2020 19:28:50 +0000 (12:28 -0700)
commit9ba58c36bfa1d8a39f830e95e55b1cbe2eca3db6
tree11a5371cb5f351a56a621e0114b322f5799129aa
parent1e50a5657a29d05c8d40c98ae41f14c569d8a238
sfc: fix unused-but-set-variable warning in efx_farch_filter_remove_safe

Thanks to some past refactor, 'spec' is not actually used in this
 function; the code using it moved to the callee efx_farch_filter_remove.
Remove the variable to fix a W=1 warning.

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