Skip to contentSkip to conversation

net: sched: Remove unnecessary ‘0’ values from err

PATCH New Li zeming 1 participant 1 message Oct 8, 2022

Subsystems (3)
lore
Share & tools
lore

Li zeming

author
#0 lore raw

PATCH 1/1 net: sched: Remove unnecessary ‘0’ values from err

The err variable is assigned as it is used, it does not need to initialize the assignment.

---
 net/sched/act_api.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/sched/act_api.c +1 -1
index 817065aa2833..19e4cef35e09 100644
@@ -257,7 +257,7 @@ static int tcf_action_offload_add_ex(struct tc_action *action,
 	};
 	struct flow_offload_action *fl_action;
 	u32 in_hw_count = 0;
-	int num, err = 0;
+	int num, err;
 
 	if (tc_act_skip_hw(action->tcfa_flags))
 		return 0;
Signature · 1 line
2.18.2