lkml.org 
[lkml]   [2023]   [Oct]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] taskstats: Remove unnecessary ‘0 ’ values from rc
Date
rc is assigned first, so it does not need to initialize the assignment.

Signed-off-by: Li zeming <zeming@nfschina.com>
---
kernel/taskstats.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/taskstats.c b/kernel/taskstats.c
index 8ce3fa0c19e2d..5685dead54228 100644
--- a/kernel/taskstats.c
+++ b/kernel/taskstats.c
@@ -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;
--
2.18.2
\
 
 \ /
  Last update: 2023-10-17 08:02    [W:0.053 / U:0.592 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site