Skip to contentSkip to conversation

taskstats: Remove unnecessary ‘0’ values from rc

PATCH New Li zeming 1 participant 1 message Oct 17, 2023 Taskstats statistics interface

lore
Share & tools
lore

Li zeming

author
#0 lore raw

PATCH 1/1 taskstats: Remove unnecessary ‘0’ values from rc

rc is assigned first, so it does not need to initialize the assignment.

---
 kernel/taskstats.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/taskstats.c +1 -1
index 8ce3fa0c19e2d..5685dead54228 100644
@@ -406,7 +406,7 @@ static struct taskstats *mk_reply(struct sk_buff *skb, int type, u32 pid)
 
 static int cgroupstats_user_cmd(struct sk_buff *skb, struct genl_info *info)
 {
-	int rc = 0;
+	int rc;
 	struct sk_buff *rep_skb;
 	struct cgroupstats *stats;
 	struct nlattr *na;
Signature · 1 line
2.18.2