linux_dsm_epyc7002/drivers/net/ethernet/amd/xgbe
Lendacky, Thomas 8c5385cbb0 amd-xgbe: Fix up some coccinelle identified warnings
Fix up some warnings that were identified by coccinelle:

Clean up an if/else block that can look confusing since the same statement
is executed in an "else if" check and the final "else" statement.

Change a variable from unsigned int to int since it is used in an if
statement checking the value to be less than 0.

Reported-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-11-15 22:12:57 -05:00
..
Makefile amd-xgbe: Add I2C support for sideband communication 2016-11-13 00:56:26 -05:00
xgbe-common.h amd-xgbe: Add support for a KR redriver 2016-11-13 00:56:26 -05:00
xgbe-dcb.c amd-xgbe: Do traffic class setup when called through dcbnl 2016-02-17 15:22:20 -05:00
xgbe-debugfs.c amd-xgbe: Add I2C support for sideband communication 2016-11-13 00:56:26 -05:00
xgbe-desc.c amd-xgbe: Fix DMA API debug warning 2015-07-08 15:57:14 -07:00
xgbe-dev.c amd-xgbe: Add support for MDIO attached PHYs 2016-11-13 00:56:26 -05:00
xgbe-drv.c amd-xgbe: Add support for MDIO attached PHYs 2016-11-13 00:56:26 -05:00
xgbe-ethtool.c net: xgbe: use new api ethtool_{get|set}_link_ksettings 2016-11-09 13:25:13 -05:00
xgbe-i2c.c amd-xgbe: Add I2C support for sideband communication 2016-11-13 00:56:26 -05:00
xgbe-main.c amd-xgbe: Add support for MDIO attached PHYs 2016-11-13 00:56:26 -05:00
xgbe-mdio.c amd-xgbe: Fix mask appliciation for Clause 37 register 2016-11-15 22:12:57 -05:00
xgbe-pci.c amd-xgbe: Add I2C support for sideband communication 2016-11-13 00:56:26 -05:00
xgbe-phy-v1.c amd-xgbe: Add support for a KR redriver 2016-11-13 00:56:26 -05:00
xgbe-phy-v2.c amd-xgbe: Fix up some coccinelle identified warnings 2016-11-15 22:12:57 -05:00
xgbe-platform.c amd-xgbe: Add support for new DMA interrupt mode 2016-11-13 00:56:26 -05:00
xgbe-ptp.c ptp: xgbe: convert to the 64 bit get/set time methods. 2015-03-31 12:01:16 -04:00
xgbe.h amd-xgbe: Add support for a KR redriver 2016-11-13 00:56:26 -05:00