Skip to contentSkip to conversation

net/ice: minor code cleanups

PATCH Applied Xiao Wang 2 participants 2 messages May 5, 2019 – May 6, 2019 Network drivers

lore
Share & tools
lore

Xiao Wang

author
#0 lore raw

PATCH 1/1 net/ice: minor code cleanups

This patch is a cleanup on comment, variable modifier, coding style.

---
 drivers/net/ice/ice_ethdev.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/net/ice/ice_ethdev.c +3 -3
index 1f06a2c80..706632424 100644
@@ -1587,7 +1587,7 @@ ice_dev_uninit(struct rte_eth_dev *dev)
 	/* disable uio intr before callback unregister */
 	rte_intr_disable(intr_handle);
 
-	/* register callback func to eal lib */
+	/* unregister callback func from eal lib */
 	rte_intr_callback_unregister(intr_handle,
 				     ice_interrupt_handler, dev);
 
@@ -2125,7 +2125,7 @@ ice_atomic_write_link_status(struct rte_eth_dev *dev,
 }
 
 static int
-ice_link_update(struct rte_eth_dev *dev, __rte_unused int wait_to_complete)
+ice_link_update(struct rte_eth_dev *dev, int wait_to_complete)
 {
 #define CHECK_INTERVAL 100  /* 100ms */
 #define MAX_REPEAT_TIME 10  /* 1s (10 * 100ms) in total */
@@ -2502,7 +2502,7 @@ ice_vlan_tpid_set(struct rte_eth_dev *dev,
 			reg_id = 3;
 		else
 			reg_id = 5;
-	break;
+		break;
 	case ETH_VLAN_TYPE_INNER:
 		if (qinq) {
 			reg_id = 5;
Signature · 1 line
2.15.1
Acked-by on v1 1/1 Applied
#1 lore raw
Quoted 10 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Xiao Wang
Sent: Sunday, May 5, 2019 1:45 PM
To: Lu, Wenzhuo <[email protected]>
Cc: [email protected]; Yang, Qiming <[email protected]>; Wang, Xiao W <[email protected]>
Subject: [dpdk-dev] [PATCH] net/ice: minor code cleanups

Quoted 3 lines

This patch is a cleanup on comment, variable modifier, coding style.

Applied to dpdk-next-net-intel.

Thanks
Qi