]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: Remove unneeded I/O read caught by cppcheck
authorVince Bridgers <vbridgers2013@gmail.com>
Mon, 30 Jun 2014 01:34:53 +0000 (20:34 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Jul 2014 01:37:54 +0000 (18:37 -0700)
commit98ad3c4915b43df1ef48c27d3be7a2945733d2f6
tree4b8f6ea2f6816e15bc76207857c38dc0797a1068
parentb47483b158ba091985ee8f24279a8bc2795984d7
net: stmmac: Remove unneeded I/O read caught by cppcheck

Cppcheck found a case where a local variable was being assigned a value,
but not used. There seems to be no reason to read this register before
assigning a new value, so addressing thie issue.

cppcheck --force --enable=all --inline-suppr . shows ...

Variable 'value' is reassigned a value before the old one has been used.

Signed-off-by: Vince Bridgers <vbridgers2013@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c