Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp359408rdb; Mon, 18 Sep 2023 18:39:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGpYC63qkSgfX9AfW+x6+5AsNA0lcTQDbPqjygGOy0t963rquvP1xJwbMpkTWdSvdDxTI2g X-Received: by 2002:a05:620a:454c:b0:773:ae3c:4c7e with SMTP id u12-20020a05620a454c00b00773ae3c4c7emr13746689qkp.2.1695087583812; Mon, 18 Sep 2023 18:39:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695087583; cv=none; d=google.com; s=arc-20160816; b=Ov5hTzk5dTgOA0B++M0ohQE/7b7tooRJoVWP13MhhXeN8PExDWg7BTGq/NiDGTH+EY YxmvsRUYLRQlwFqMDPX3r28RYghc6jdtUXx1QBCuvZUVj+3Pc+4XP90pvlVt4ZfeBKaM jPGqskHHuvy5qW//W2nxM9EQUXV8YFa5xRYnZXFcrJlsTJp9dm5IXE5Ru2kzkU0Y7H0Z vaJuz3CtrWn0RsVzpO/RHWeljYrJvDei7FXM9A5BUa6LmGSOOgb5pCcFZG2FchPjD/kz 7IbctRG98iUBn1ZkmExAY7e9YCrxiGuh+fzABG+cINPk+W31NH9uXGoXiFri6G30yhcL TTFg== 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 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id f16-20020a63e310000000b0057458518e21si8804199pgh.630.2023.09.18.18.39.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 18:39:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 4947E808726F; Mon, 18 Sep 2023 18:36:57 -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 S230444AbjISBgw (ORCPT + 99 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 ); 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 ; 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 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 Subject: [PATCH] =?UTF-8?q?params:=20Remove=20unnecessary=20=E2=80=980?= =?UTF-8?q?=E2=80=99=20values=20from=20err?= 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: 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:36:57 -0700 (PDT) err is assigned first, so it does not need to initialize the assignment. Signed-off-by: Li zeming --- 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; -- 2.18.2