]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: Correct duplicate if/then/else case found by cppcheck
authorVince Bridgers <vbridgers2013@gmail.com>
Mon, 30 Jun 2014 01:34:52 +0000 (20:34 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Jul 2014 01:37:54 +0000 (18:37 -0700)
commitb47483b158ba091985ee8f24279a8bc2795984d7
treedee6dfd184c12aa6bcc34608ba05da25779e806a
parentd350921705286281e59b9de17ea1386ca69a10ec
net: stmmac: Correct duplicate if/then/else case found by cppcheck

Cppcheck found a duplicate if/then/else case where a receive descriptor
was being processed. This patch corrects that issue.

cppcheck --force --enable=all --inline-suppr .
...
Checking enh_desc.c...
[enh_desc.c:148] -> [enh_desc.c:144]: (style) Found duplicate if expressions.
...

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