net/e1000/base: fix minor issues and improve code style
authorGuinan Sun <guinanx.sun@intel.com>
Mon, 6 Jul 2020 08:12:03 +0000 (08:12 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 7 Jul 2020 21:38:27 +0000 (23:38 +0200)
commitb8592c89c8fbc871d22313dcac0b86c89a7d5a62
treef41706fb868e7eec35917bb12e1004090c8c2ecd
parent1bf35d435c9764e83be76042fa6489dd127b6c40
net/e1000/base: 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>
drivers/net/e1000/base/e1000_80003es2lan.c
drivers/net/e1000/base/e1000_82575.c
drivers/net/e1000/base/e1000_i210.c
drivers/net/e1000/base/e1000_ich8lan.c
drivers/net/e1000/base/e1000_nvm.c
drivers/net/e1000/base/e1000_phy.c