Skip to contentSkip to conversation

ice: Fix newline at the end of NL_SET_ERR_MSG_MOD

PATCH New Wojciech Drewek 3 participants 3 messages Aug 30, 2021 – Sep 14, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ice: Fix newline at the end of NL_SET_ERR_MSG_MOD

Newline character is not needed at the end of NL_SET_ERR_MSG_MOD.

---
 drivers/net/ethernet/intel/ice/ice_tc_lib.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/intel/ice/ice_tc_lib.c +1 -1
index 34fe725b4a53..e01b16419923 100644
@@ -670,7 +670,7 @@ static int ice_del_tc_fltr(struct ice_vsi *vsi, struct ice_tc_flower_fltr *fltr)
 	err = ice_rem_adv_rule_by_id(&pf->hw, &rule_rem);
 	if (err) {
 		if (err == ICE_ERR_DOES_NOT_EXIST) {
-			NL_SET_ERR_MSG_MOD(fltr->extack, "filter does not exist\n");
+			NL_SET_ERR_MSG_MOD(fltr->extack, "Filter does not exist");
 			return -ENOENT;
 		}
 		NL_SET_ERR_MSG_MOD(fltr->extack, "Failed to delete TC flower filter");
Signature · 1 line
2.30.1
#1 lore raw

PATCH v2 1/1 ice: Fix newline at the end of NL_SET_ERR_MSG_MOD

Quoted 10 lines

-----Original Message-----
From: Intel-wired-lan <[email protected]> On Behalf Of Wojciech Drewek
Sent: Monday, August 30, 2021 7:42 PM
To: intel-wired-lan at lists.osuosl.org
Subject: [Intel-wired-lan] [PATCH net-next v2] ice: Fix newline at the end of NL_SET_ERR_MSG_MOD

Quoted 9 lines

Newline character is not needed at the end of NL_SET_ERR_MSG_MOD.

---
 drivers/net/ethernet/intel/ice/ice_tc_lib.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
#2 lore raw

PATCH v2 1/1 ice: Fix newline at the end of NL_SET_ERR_MSG_MOD

In reply to Wojciech Drewek
Quoted 15 lines · Wojciech Drewek

Newline character is not needed at the end of NL_SET_ERR_MSG_MOD.

---
 drivers/net/ethernet/intel/ice/ice_tc_lib.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/intel/ice/ice_tc_lib.c +0 -0
index 34fe725b4a53..e01b16419923 100644

drivers/net/ethernet/intel/ice/ice_tc_lib.c static int ice_del_tc_fltr(struct ice_vsi *vsi, struct ice_tc_flower_fltr *fltr) · line 676

Quoted 8 lines
drivers/net/ethernet/intel/ice/ice_tc_lib.c +1 -1
@@ -670,7 +670,7 @@ static int ice_del_tc_fltr(struct ice_vsi *vsi, struct ice_tc_flower_fltr *fltr)
 	err = ice_rem_adv_rule_by_id(&pf->hw, &rule_rem);
 	if (err) {
 		if (err == ICE_ERR_DOES_NOT_EXIST) {
-			NL_SET_ERR_MSG_MOD(fltr->extack, "filter does not exist\n");
+			NL_SET_ERR_MSG_MOD(fltr->extack, "Filter does not exist");
 			return -ENOENT;
 		}
 		NL_SET_ERR_MSG_MOD(fltr->extack, "Failed to delete TC flower filter");