* [PATCH] net: sched: Remove unnecessary ‘0’ values from err
@ 2022-10-08 8:48 Li zeming
0 siblings, 0 replies; only message in thread
From: Li zeming @ 2022-10-08 8:48 UTC (permalink / raw)
To: jhs, xiyou.wangcong, jiri, davem, edumazet, kuba, pabeni
Cc: netdev, linux-kernel, Li zeming
The err variable is assigned as it is used, it does not need to
initialize the assignment.
Signed-off-by: Li zeming <zeming@nfschina.com>
---
net/sched/act_api.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/sched/act_api.c b/net/sched/act_api.c
index 817065aa2833..19e4cef35e09 100644
--- a/net/sched/act_api.c
+++ b/net/sched/act_api.c
@@ -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;
--
2.18.2
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-10-08 8:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-08 8:48 [PATCH] net: sched: Remove unnecessary ‘0’ values from err Li zeming
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).