From patchwork Tue Oct 17 06:01:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li zeming X-Patchwork-Id: 153919 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp3923491vqb; Mon, 16 Oct 2023 23:02:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG1L+JbTAMO7kiJdKT7emgM6iO0dkheY7+9CMU+JNmIUX/QnhFsZeyBLrdmbJLGMEVLsgC/ X-Received: by 2002:a05:6358:72a6:b0:166:d9f6:fbbc with SMTP id w38-20020a05635872a600b00166d9f6fbbcmr1338119rwf.3.1697522548541; Mon, 16 Oct 2023 23:02:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697522548; cv=none; d=google.com; s=arc-20160816; b=d3QmuXtiaMIdRN46V4gj8Q89tCkAUKUEGLBQu0NW2xV0te20tOULgyVFXLrDSDZmCe 0VqmstlX18u22xcCQAm71mRztpAaPNF/2N+ZkJBZId4CxZGpGYjY5APbtlZ0h/C8JG9J VT28fJRcGTV/LaY2OzIg2Syj1cMhWKsndt0o9xGbjoZma/nF6JNCgMg+so8Ma1l8NOob XVrDj0InbgP1FVTdLVElPvRKl9byooMpsKTWbLEu8TWaue+O1Brc3cte8HSqeeoHE9Vn U2ipGFIFab6MXkQhkV8TBMND8sxehWHxGXWcvVyIR4q/0T8z1qb97VKR9s/hcTfAa81H lazw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=QEW0mV+A1qqZ/Qc/ty5inCemK8R4Re9TltLLvdrfJ4c=; fh=Jmr1zZOOjNRm0AG3amt8NNO2vYz9ud7i3IVFUIRuR5E=; b=wX75Bde2dLBrTEHGLbWaiSx9CdJ3F7l6NN0tuu3lmP6rJ5Ujo+VvBNi/t2FdvpyKTf 8dG/Zv0DtxI5rTmJE90790ranZOSp3gxNmLgYKrGgfwmQNIcA9kWr7LC2Xfszm5VggRl GW0DvE/LuCl3Dbyq2F1yQMlRWT881nhRuRliNQCpXClOFbuziSLEFJ6a51X+mwn/ezAR gbyumrxPQET1NNLL44aV8LkQt2Q6Y2k9c3jaDoyemP7Qrkhz0jUf70uJE1ojF1D5fyI+ JRP1jmdtD/DvjLjR3ZzU6iKCtJcK2j+fBZsH/jq/D4miXUrUOr20S0elI4/5JMZWtdOA jlXA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id z10-20020aa7888a000000b0068e3efffe2csi958953pfe.243.2023.10.16.23.02.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 23:02:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id BF64780CF54B; Mon, 16 Oct 2023 23:02:27 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234467AbjJQGCQ (ORCPT + 19 others); Tue, 17 Oct 2023 02:02:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234426AbjJQGCO (ORCPT ); Tue, 17 Oct 2023 02:02:14 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 663A0B6 for ; Mon, 16 Oct 2023 23:02:12 -0700 (PDT) Received: from localhost.localdomain (unknown [219.141.250.2]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id 7ECEB6027B148; Tue, 17 Oct 2023 14:01:59 +0800 (CST) X-MD-Sfrom: zeming@nfschina.com X-MD-SrcIP: 219.141.250.2 From: Li zeming To: bsingharora@gmail.com Cc: linux-kernel@vger.kernel.org, Li zeming Subject: [PATCH] =?utf-8?q?taskstats=3A_Remove_unnecessary_=E2=80=980?= =?utf-8?q?=E2=80=99_values_from_rc?= Date: Tue, 17 Oct 2023 14:01:57 +0800 Message-Id: <20231017060157.10117-1-zeming@nfschina.com> X-Mailer: git-send-email 2.18.2 MIME-Version: 1.0 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,RDNS_NONE, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 16 Oct 2023 23:02:27 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779981403645445606 X-GMAIL-MSGID: 1779981403645445606 rc is assigned first, so it does not need to initialize the assignment. Signed-off-by: Li zeming --- 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;