Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp34776861rwd; Sun, 9 Jul 2023 20:25:15 -0700 (PDT) X-Google-Smtp-Source: APBJJlEr/rtPC8PGastdtf5tySvUa8Dhb88TGFDgFTCRgKtANWMx9OVYSVe2Pd60yXGr0LNc8lxT X-Received: by 2002:a05:6512:3ba0:b0:4f3:b708:f554 with SMTP id g32-20020a0565123ba000b004f3b708f554mr9746468lfv.47.1688959514902; Sun, 09 Jul 2023 20:25:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688959514; cv=none; d=google.com; s=arc-20160816; b=e72D/uqpsUtKPpTPHTPh7yG27zBk+aFclXrDZmgDiYD2oD1R1AJ9xp7j5iL22gPSrZ C05Y2L0Z3EsIydh3VkBnmJ/uzJbop5Fjw0RywxWmA2ZVb8T0O4KEuExNAkwBqn2ygb4T Z1MGudf5F1PU1YBXl8fdnjsEWgiMcmIglZdLCI9xjzVCu84VbSi+5XJIq/ivPYpFeUzz RgtiQV9xFcpCu6dLO0OZRH0APPcVRUIzqeMgFVkOkWGXBCrJEt1mO1qEBPMXcjAh5MzE MeZjnkuU9dW/G1z57U4tKmOsfWxA+KMshXdVBTPGH0FEqE1age9oEs7q0QTRcZX2uIPT P3AA== 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=Apg2bYnL9Ugj3S9txj3a8PO2ZXZEzjLB2AoBMwJMl54=; fh=LC12ZFiPK1jg+9BVY1g6CFKGwZpTgGCBtPecy0pNBoQ=; b=RcFh8gPqYNc3JZ9K9UZe6WUkDiP7/j+5xyB/xM/Q6y9Fg7UNasN7SGQVkSFFPcJZ2L Jgve7keLfO0LajlpH8GjlBjtICGIX8etZbtrQyKXFvszukYN15RqzLzeI45db6d4C1ZF zd8SCYYVLa1H2c7ZuPWFgs/BoY1EjK6PiLlWWe0qalKFoJg+o/GU1S2npAX6CaJt9JHk 5XC8HhkxN2145x7/nZOv1CWtcyQiqrw9gQbNf+pP1CR7SfQleyLRulmkAqnROAgXeRAk nfVyIpN4kVnMfMzkLvHTzK/KtCRJQKC4QMOkoteXfQwVrNRQ5Bf002W0cQ6hsae3Mj+V tBtw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c20-20020aa7d614000000b0051be9f09bf8si8467081edr.9.2023.07.09.20.24.51; Sun, 09 Jul 2023 20:25:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229522AbjGJDNn (ORCPT + 99 others); Sun, 9 Jul 2023 23:13:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229449AbjGJDNl (ORCPT ); Sun, 9 Jul 2023 23:13:41 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 3462B1B0 for ; Sun, 9 Jul 2023 20:13:06 -0700 (PDT) Received: from localhost.localdomain (unknown [219.141.250.2]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id 9D4896028429D; Mon, 10 Jul 2023 11:13:01 +0800 (CST) X-MD-Sfrom: zeming@nfschina.com X-MD-SrcIP: 219.141.250.2 From: Li zeming To: mcgrof@kernel.org, linux@rasmusvillemoes.dk, mbenes@suse.cz, rafael@kernel.org, linux@weissschuh.net, gregkh@linuxfoundation.org, christophe.jaillet@wanadoo.fr Cc: linux-kernel@vger.kernel.org, Li zeming Subject: [PATCH] =?UTF-8?q?kernel:=20params:=20Remove=20unnecessary=20?= =?UTF-8?q?=E2=80=980=E2=80=99=20values=20from=20err?= Date: Wed, 12 Jul 2023 03:43:31 +0800 Message-Id: <20230711194331.4361-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.9 required=5.0 tests=BAYES_00,DATE_IN_FUTURE_24_48, RDNS_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 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 6a7548979aa9..f8837a5f2c3e 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