]> git.baikalelectronics.ru Git - kernel.git/commit
e1000: remove unused and incorrect code
authorJesse Brandeburg <jesse.brandeburg@intel.com>
Mon, 12 Oct 2020 18:13:46 +0000 (11:13 -0700)
committerJakub Kicinski <kuba@kernel.org>
Wed, 14 Oct 2020 02:44:01 +0000 (19:44 -0700)
commit615b03552dc9b40e708de118f20f7c527b8349e8
tree3a2495aa7db40a26796d4214956f23481d62b83c
parentea9bf825f4330a3d8386c89b37e2a8febb46d76b
e1000: remove unused and incorrect code

The e1000_clear_vfta function was triggering a warning in kbuild-bot
testing. It's actually a bug but has no functional impact.

drivers/net/ethernet/intel/e1000/e1000_hw.c:4415:58: warning: Same expression in both branches of ternary operator. [duplicateExpressionTernary]

Fix this warning by removing the offending code and simplifying
the routine to do exactly what it did before, no functional
change.

Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/intel/e1000/e1000_hw.c