From: Li zeming <zeming@nfschina.com>
To: jhs@mojatatu.com, xiyou.wangcong@gmail.com, jiri@resnulli.us,
davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
pabeni@redhat.com
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
Li zeming <zeming@nfschina.com>
Subject: [PATCH] net: sched: Remove unnecessary ‘0’ values from err
Date: Sat, 8 Oct 2022 16:48:08 +0800 [thread overview]
Message-ID: <20221008084808.4650-1-zeming@nfschina.com> (raw)
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
reply other threads:[~2022-10-08 8:48 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221008084808.4650-1-zeming@nfschina.com \
--to=zeming@nfschina.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=jhs@mojatatu.com \
--cc=jiri@resnulli.us \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=xiyou.wangcong@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).