]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
e1000: fix minor issues and improve code style
authorGuinan Sun <guinanx.sun@intel.com>
Mon, 6 Jul 2020 08:12:03 +0000 (08:12 +0000)
committerKevin Bowling <kbowling@FreeBSD.org>
Fri, 17 Sep 2021 21:14:34 +0000 (14:14 -0700)
commit6c59e1866ca7a48d84f1d298bb3e6a07d2e6f756
tree3da956ac16c9c8465a661c58bd21e3873eda928a
parent5b426b3e8cbd5abdb3a57ff49cd27c36cac03427
e1000: fix minor issues and improve code style

Fix typo in piece of code of NVM access for SPT.
And cleans up the remaining instances in the shared code
where it was not adhering to the Linux code standard.
Wrong description was found in the mentioned file, so fix them.
Remove shadowing variable declarations.

Relating to operands in bitwise operations having different sizes.
Unreachable code since *clock_in_i2c_* always return success.
Don't return unused s32 and don't check for constants.

Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Sasha Neftin <sasha.neftin@intel.com>
Signed-off-by: Vitaly Lifshits <vitaly.lifshits@intel.com>
Signed-off-by: Robert Konklewski <robertx.konklewski@intel.com>
Signed-off-by: Doug Dziggel <douglas.a.dziggel@intel.com>
Signed-off-by: Todd Fujinaka <todd.fujinaka@intel.com>
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Guinan Sun <guinanx.sun@intel.com>
Reviewed-by: Wei Zhao <wei.zhao1@intel.com>
Approved by: imp
Obtained from: DPDK (b8592c89c8fbc871d22313dcac0b86c89a7d5a62)
MFC after: 1 week
sys/dev/e1000/e1000_80003es2lan.c
sys/dev/e1000/e1000_82575.c
sys/dev/e1000/e1000_i210.c
sys/dev/e1000/e1000_ich8lan.c
sys/dev/e1000/e1000_mac.c
sys/dev/e1000/e1000_nvm.c
sys/dev/e1000/e1000_phy.c