Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2952633rdg; Mon, 16 Oct 2023 23:02:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFsTh7qyInaIDU8I1j+oM8Iz91DYTjRQMmNU8t/8OkXaVVGNAdbeHyLYoIWczu6CVaS2JII X-Received: by 2002:a17:902:82c2:b0:1bc:3944:9391 with SMTP id u2-20020a17090282c200b001bc39449391mr1377926plz.25.1697522541040; Mon, 16 Oct 2023 23:02:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697522541; cv=none; d=google.com; s=arc-20160816; b=nPDObg1IZdx4ivXSZwUEOJds26ELsPyqY0pAx1Lzl62lTnJ9ryRFgYnZX4Y0AZBvhU wZqdBvZOVdMXhZHYs44lBiAazKjyyDEJOZ6RNXLnuCS+Tb2fnZ50a0DBO3zi9DOvzwPS PAhrwOKCxdvb05OKkP0lKx8unpgcbbdGPpVsc+7OXlQarDkNpyKxpzqQmbsRHcPxvtEa kISWRwkB7DbQyaZ6YKu0c0yY84paLGbkIV99cNRarHTMt6BGW7RPGnferXv1m2U4u0dA 5QzrcYwiM1BGP65UsrmM5Co8aXuXeRz8W1xF/s3q7k+af3mWluU+FTwLEAH+OXWMwAy5 bD3A== 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 Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id c4-20020a170902aa4400b001c446b59c8dsi1009895plr.271.2023.10.16.23.02.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 23:02:21 -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 52F9E8030B63; Mon, 16 Oct 2023 23:02:20 -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 S234464AbjJQGCQ (ORCPT + 99 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:=20Remove=20unnecessary=20=E2=80=980?= =?UTF-8?q?=E2=80=99=20values=20from=20rc?= 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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:20 -0700 (PDT) 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; -- 2.18.2