[linux-yocto] [PATCH 30/57] LSI FEMAC: Chechpatch updates to 'Ethernet Driver'

Charlie Paul cpaul.windriver at gmail.com
Mon Mar 17 21:56:30 PDT 2014


These changes were made to satisfy checkpatch output.

Signed-off-by: Charlie Paul <charlie.paul at windriver.com>
---
 drivers/net/ethernet/lsi/lsi_acp_net.c |    5 ++---
 drivers/net/ethernet/lsi/lsi_acp_net.h |    2 +-
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/drivers/net/ethernet/lsi/lsi_acp_net.c b/drivers/net/ethernet/lsi/lsi_acp_net.c
index 80154ef..78b7e79 100644
--- a/drivers/net/ethernet/lsi/lsi_acp_net.c
+++ b/drivers/net/ethernet/lsi/lsi_acp_net.c
@@ -1757,9 +1757,8 @@ static int appnic_probe_config_dt(struct net_device *dev,
 			pdata->phy_link_speed = 0;
 			pdata->phy_link_duplex = 0;
 		} else {
-			pr_err("Invalid phy-link value \"%s\" "
-			       "in DTS. Defaulting to \"auto\".\n",
-			       macspeed);
+			pr_err("Invalid phy-link value \"%s\" in DTS. Defaulting to \"auto\".\n",
+					macspeed);
 			pdata->phy_link_auto = 1;
 		}
 	} else {
diff --git a/drivers/net/ethernet/lsi/lsi_acp_net.h b/drivers/net/ethernet/lsi/lsi_acp_net.h
index 867a4f1..c1f4311 100644
--- a/drivers/net/ethernet/lsi/lsi_acp_net.h
+++ b/drivers/net/ethernet/lsi/lsi_acp_net.h
@@ -357,7 +357,7 @@ struct appnic_device {
 	do {							\
 		(tx_configuration) &= ~APPNIC_TX_CONF_IFG;	\
 		(tx_configuration) |= ((ifg & 0x1f) << 4);	\
-	} while (0);
+	} while (0)
 
 /* Transmit Time Value Configuration -------------------------------- */
 
-- 
1.7.9.5



More information about the linux-yocto mailing list