From nobody Fri Feb 13 10:59:56 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 635D3E81811 for ; Tue, 26 Sep 2023 02:24:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233356AbjIZCYn (ORCPT ); Mon, 25 Sep 2023 22:24:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230054AbjIZCYk (ORCPT ); Mon, 25 Sep 2023 22:24:40 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 4F292BF for ; Mon, 25 Sep 2023 19:24:34 -0700 (PDT) Received: from localhost.localdomain (unknown [219.141.250.2]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id 53C2960520007; Tue, 26 Sep 2023 10:24:18 +0800 (CST) X-MD-Sfrom: kunyu@nfschina.com X-MD-SrcIP: 219.141.250.2 From: Li kunyu To: oleg@redhat.com, peterz@infradead.org, mcgrof@kernel.org, mathieu.desnoyers@efficios.com, elver@google.com, viro@zeniv.linux.org.uk, dvyukov@google.com, vincent.whitchurch@axis.com, michael.christie@oracle.com Cc: linux-kernel@vger.kernel.org, Li kunyu Subject: [PATCH] =?UTF-8?q?kernel/signal:=20Remove=20unnecessary=20?= =?UTF-8?q?=E2=80=98NULL=E2=80=99=20values=20from=20ucounts?= Date: Tue, 26 Sep 2023 10:24:10 +0800 Message-Id: <20230926022410.4280-1-kunyu@nfschina.com> X-Mailer: git-send-email 2.18.2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" ucounts is assigned first, so it does not need to initialize the assignment. Signed-off-by: Li kunyu Acked-by: Oleg Nesterov --- kernel/signal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/signal.c b/kernel/signal.c index 09019017d669..27f6cd37ac4f 100644 --- a/kernel/signal.c +++ b/kernel/signal.c @@ -415,7 +415,7 @@ __sigqueue_alloc(int sig, struct task_struct *t, gfp_t = gfp_flags, int override_rlimit, const unsigned int sigqueue_flags) { struct sigqueue *q =3D NULL; - struct ucounts *ucounts =3D NULL; + struct ucounts *ucounts; long sigpending; =20 /* --=20 2.18.2