Message ID | 20230919013613.8005-1-zeming@nfschina.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp3069165vqi; Mon, 18 Sep 2023 18:39:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGknf0phYUakwSJXUesgSOlVm+js/q9uf/k8RCCF+Uu3vy3U7NnJMNivdmu3NVZJwzVmuTo X-Received: by 2002:a1f:ea41:0:b0:493:5420:f20c with SMTP id i62-20020a1fea41000000b004935420f20cmr7799396vkh.10.1695087585871; Mon, 18 Sep 2023 18:39:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695087585; cv=none; d=google.com; s=arc-20160816; b=S83ml5SaCEMvrUa2qGb1nNHWS0piaG/WtWVRn7XcieQoRIlZQWT2T75bZgcbyAljjd EYIeFL3UhJb7RURNqBQS/wr8lNh3bi2xjIeLNb/VKhVmLJtYSGaDFeX9as/+OLesAeji 31j3ra5mywT6Dh8rhzavQhpgYvC2dEX99bmuf4JBcpRzaIoxpUpmudq06sZRK/8tXWeK HdMgMYaezUXjOiidPSSqvnRYyCqB+OQ/SONVszP7P03cwRaTdunX8isp7g1cpoe/klDv 7TapVltAWOx/Y/TW5K9Zg4MgkzcNZd86JcZyJ4R/GtigYsiabw7DOdqnqP8ARDg7mgVC hK3A== 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=DVEfvbzs6BsnfvshbP5Kz2uxNKikdUBPA7GIIyrs2mA=; fh=9KKxvhIWVAJ2n1i9mDMv8yJvm/6SkJzyRf+piIaq32s=; b=v17UgpMMj1GdV/SkH8ksDiFQAuzLcXdkStOqPJUjjLFnVd89JI668X/9N39oeRy8i3 9/+1HjVJ+YnGu6E3ntSfH/HVoxwHKfiV/dd3ivwmszvu+ci+HeTKIDUrf8uHAoG8GKrR 0n6UIT11xQIFGOMymk61xGB1tgcQLVgK4zEshQq9f8eGNKVwgNcfenj/ORM/mh4DUWlY 9Rd4jewEgaUJNOW8uMucnDRAAPFV/PDtocVtacNUFGeVc/DJGOXH/ihXWLjTtzu4bm1s LEQm3tO4t/pGQ0/udiqUM+gN+kQE7tKyMl3y5YfR4SKw5hgQBePj/yFXy7AinCDt94jI Oh/Q== 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:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id l19-20020a656813000000b005777125ed83si8838967pgt.238.2023.09.18.18.39.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 18:39:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id D54D581A999B; Mon, 18 Sep 2023 18:37:29 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230445AbjISBgw (ORCPT <rfc822;toshivichauhan@gmail.com> + 26 others); Mon, 18 Sep 2023 21:36:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229534AbjISBgs (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 18 Sep 2023 21:36:48 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 4CC0F10F for <linux-kernel@vger.kernel.org>; Mon, 18 Sep 2023 18:36:33 -0700 (PDT) Received: from localhost.localdomain (unknown [219.141.250.2]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id BC6ED6025A065; Tue, 19 Sep 2023 09:36:23 +0800 (CST) X-MD-Sfrom: zeming@nfschina.com X-MD-SrcIP: 219.141.250.2 From: Li zeming <zeming@nfschina.com> To: mcgrof@kernel.org, keescook@chromium.org, mbenes@suse.cz, linux@rasmusvillemoes.dk, christian.koenig@amd.com, christophe.jaillet@wanadoo.fr, linux@weissschuh.net, azeemshaikh38@gmail.com Cc: linux-kernel@vger.kernel.org, Li zeming <zeming@nfschina.com> Subject: [PATCH] =?utf-8?q?params=3A_Remove_unnecessary_=E2=80=980=E2=80=99_?= =?utf-8?q?values_from_err?= Date: Tue, 19 Sep 2023 09:36:13 +0800 Message-Id: <20230919013613.8005-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=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 18 Sep 2023 18:37:29 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777428160740190242 X-GMAIL-MSGID: 1777428160740190242 |
Series |
params: Remove unnecessary ‘0’ values from err
|
|
Commit Message
Li zeming
Sept. 19, 2023, 1:36 a.m. UTC
err is assigned first, so it does not need to initialize the assignment.
Signed-off-by: Li zeming <zeming@nfschina.com>
---
kernel/params.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/params.c b/kernel/params.c index 07d01f6ce9a2..2d4a0564697e 100644 --- a/kernel/params.c +++ b/kernel/params.c @@ -331,7 +331,7 @@ EXPORT_SYMBOL(param_ops_bool); int param_set_bool_enable_only(const char *val, const struct kernel_param *kp) { - int err = 0; + int err; bool new_value; bool orig_value = *(bool *)kp->arg; struct kernel_param dummy_kp = *kp;