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)
commit43d24e48940d04f587818fadc5305b109f5cb8cf
treedee6dfd184c12aa6bcc34608ba05da25779e806a
parent0acf16768740776feffac506ce93b1c06c059ac6
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