Michal Suchanek 767d59
From bab08bedcdc33a644682197f3c88a6e56c325fcf Mon Sep 17 00:00:00 2001
Michal Suchanek 767d59
From: Lijun Pan <lijunp213@gmail.com>
Michal Suchanek 767d59
Date: Thu, 11 Feb 2021 00:43:19 -0600
Michal Suchanek 767d59
Subject: [PATCH] ibmvnic: fix block comments
Michal Suchanek 767d59
Michal Suchanek 767d59
References: bsc#1184114 ltc#192237 bsc#1183871 ltc#192139
Michal Suchanek 767d59
Patch-mainline: v5.12-rc1
Michal Suchanek 767d59
Git-commit: bab08bedcdc33a644682197f3c88a6e56c325fcf
Michal Suchanek 767d59
Michal Suchanek 767d59
Fix the following checkpatch warning:
Michal Suchanek 767d59
WARNING: networking block comments don't use an empty /* line, use /* Comment...
Michal Suchanek 767d59
Michal Suchanek 767d59
Signed-off-by: Lijun Pan <lijunp213@gmail.com>
Michal Suchanek 767d59
Reviewed-by: Saeed Mahameed <saeedm@nvidia.com>
Michal Suchanek 767d59
Signed-off-by: David S. Miller <davem@davemloft.net>
Michal Suchanek 767d59
Acked-by: Michal Suchanek <msuchanek@suse.de>
Michal Suchanek 767d59
---
Michal Suchanek 767d59
 drivers/net/ethernet/ibm/ibmvnic.c | 12 ++++--------
Michal Suchanek 767d59
 1 file changed, 4 insertions(+), 8 deletions(-)
Michal Suchanek 767d59
Michal Suchanek 767d59
diff --git a/drivers/net/ethernet/ibm/ibmvnic.c b/drivers/net/ethernet/ibm/ibmvnic.c
Michal Suchanek 767d59
index 55970f02d9da..5c6f6a7b2e3f 100644
Michal Suchanek 767d59
--- a/drivers/net/ethernet/ibm/ibmvnic.c
Michal Suchanek 767d59
+++ b/drivers/net/ethernet/ibm/ibmvnic.c
Michal Suchanek 767d59
@@ -1221,8 +1221,7 @@ static int ibmvnic_open(struct net_device *netdev)
Michal Suchanek 767d59
 	rc = __ibmvnic_open(netdev);
Michal Suchanek 767d59
 
Michal Suchanek 767d59
 out:
Michal Suchanek 767d59
-	/*
Michal Suchanek 767d59
-	 * If open fails due to a pending failover, set device state and
Michal Suchanek 767d59
+	/* If open fails due to a pending failover, set device state and
Michal Suchanek 767d59
 	 * return. Device operation will be handled by reset routine.
Michal Suchanek 767d59
 	 */
Michal Suchanek 767d59
 	if (rc && adapter->failover_pending) {
Michal Suchanek 767d59
@@ -1946,8 +1945,7 @@ static int do_reset(struct ibmvnic_adapter *adapter,
Michal Suchanek 767d59
 	if (!(adapter->reset_reason == VNIC_RESET_CHANGE_PARAM))
Michal Suchanek 767d59
 		rtnl_lock();
Michal Suchanek 767d59
 
Michal Suchanek 767d59
-	/*
Michal Suchanek 767d59
-	 * Now that we have the rtnl lock, clear any pending failover.
Michal Suchanek 767d59
+	/* Now that we have the rtnl lock, clear any pending failover.
Michal Suchanek 767d59
 	 * This will ensure ibmvnic_open() has either completed or will
Michal Suchanek 767d59
 	 * block until failover is complete.
Michal Suchanek 767d59
 	 */
Michal Suchanek 767d59
@@ -2249,8 +2247,7 @@ static void __ibmvnic_reset(struct work_struct *work)
Michal Suchanek 767d59
 		spin_unlock_irqrestore(&adapter->state_lock, flags);
Michal Suchanek 767d59
 
Michal Suchanek 767d59
 		if (adapter->force_reset_recovery) {
Michal Suchanek 767d59
-			/*
Michal Suchanek 767d59
-			 * Since we are doing a hard reset now, clear the
Michal Suchanek 767d59
+			/* Since we are doing a hard reset now, clear the
Michal Suchanek 767d59
 			 * failover_pending flag so we don't ignore any
Michal Suchanek 767d59
 			 * future MOBILITY or other resets.
Michal Suchanek 767d59
 			 */
Michal Suchanek 767d59
@@ -2322,8 +2319,7 @@ static int ibmvnic_reset(struct ibmvnic_adapter *adapter,
Michal Suchanek 767d59
 	unsigned long flags;
Michal Suchanek 767d59
 	int ret;
Michal Suchanek 767d59
 
Michal Suchanek 767d59
-	/*
Michal Suchanek 767d59
-	 * If failover is pending don't schedule any other reset.
Michal Suchanek 767d59
+	/* If failover is pending don't schedule any other reset.
Michal Suchanek 767d59
 	 * Instead let the failover complete. If there is already a
Michal Suchanek 767d59
 	 * a failover reset scheduled, we will detect and drop the
Michal Suchanek 767d59
 	 * duplicate reset when walking the ->rwi_list below.
Michal Suchanek 767d59
-- 
Michal Suchanek 767d59
2.26.2
Michal Suchanek 767d59