Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp34788671rwd; Sun, 9 Jul 2023 20:40:52 -0700 (PDT) X-Google-Smtp-Source: APBJJlEvCUkvQBOLJnQycIrZSh4yUrpkQEXaLK5fq4JQ453Fxr8WAZjpnmSf2iVc99FUAM//N47j X-Received: by 2002:a05:6a00:1acb:b0:666:7ec0:22d7 with SMTP id f11-20020a056a001acb00b006667ec022d7mr12567807pfv.24.1688960452588; Sun, 09 Jul 2023 20:40:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688960452; cv=none; d=google.com; s=arc-20160816; b=gDYUhQiC3HeJ7bs/3uzSIl14EH7lftdKOIvE64r+3OAA+NUjU/X+wz0JVm0OEs4SR6 4hSn561ZXgsWX+Z8JlXQXvkGkfWiPK4daeExDJUW9neYKinumYag3CbVxOhu8nWw9hIg 4pPyc+g05oWrOWzsUyvkdSIMPdY9tis9bIaPj80YuVtxU9hrZawTsB8u3vOtxaRMjHiU dmNN3RezM71UY+WdYYc/T+asBuDlK8ATmzTI7JAuhpr2VI5poU6rfGfOKdSBPd9qj0ih HhfB1xzRvIKgeUwE+ok3AHSA67elnsIOlblMSBCBQTu18ukq+jhPGjxNVZY9qdHFeqOH ssVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=utufyc0tUqMFhAkg8ykIG85vykqYY+A981nQUeqIPUY=; fh=5wbTkF3IUiSRy9Cx2VoMIFWp4jdXGLPwRTenMlZYIIg=; b=RWTxCDK1l2sUJ2bs6WWZBaivOQ1b8kqSl1f/RvVRioI27vRGK1UTS3RSrVHKfwXrxr 0mlT31xk6uh2exFchdEUlUUcGx7VnEYMyH/ChbFKfI0l4hfHaT5FYaAlIdgVq1MldAE2 omBom3s8HvTyIbkQVBq/RBIeqDySMzOAe0HEiyFh3z2+jARwqi4LNeLMO/hK1YT0ZeB3 ndAVD9ESABOSb8xJfs1IhECgnJFL01dW5FqdZVa+0Kb3v6ZBLPFmHEbDEpWBPsn7l2hZ c7u4MEH00FA5kTQYGsqQUPZUzg5wmWFP/J1MkoQmHT31u0n5D+x1M7Be20GyNCe4n5Va hlXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=M5JJwDeM; 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 bq24-20020a056a000e1800b0068188beefedsi8177737pfb.88.2023.07.09.20.40.40; Sun, 09 Jul 2023 20:40:52 -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; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=M5JJwDeM; 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 S230021AbjGJDdr (ORCPT + 99 others); Sun, 9 Jul 2023 23:33:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230018AbjGJDdk (ORCPT ); Sun, 9 Jul 2023 23:33:40 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2027F93 for ; Sun, 9 Jul 2023 20:33:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=utufyc0tUqMFhAkg8ykIG85vykqYY+A981nQUeqIPUY=; b=M5JJwDeMd8JQUAWFcRr6HMyOup ZJZ/1bpK2p0fkb0i9E0kec3wzRwcQHgbbFQcJndzgZmtdvB4wpGTzUExlwp0oDynijMl8M6h38pCb oiSKFQCpJhd3ZGqRuoXdOCiWGgHrUifB9jO6UapPdhwsARXthrJzzODvIVlG0vbG+iRcvZ9jflCju n47sy/l+Y7NqVFlvut3DSR8qbgrp794r/P0LPsJfhLv32gxmBoGK43H7SowlRrQIkRLa6QBnwy3Ih w754/YlBRHHFCzBCS5Vu+dZD4a3PDTsJgfxygiM0ZT1cRjtz7tQkhJCpqVro+Yr13zYEc7GjOwvWN YtztmFGQ==; Received: from [2601:1c2:980:9ec0::2764] by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qIheT-00AIMV-1Y; Mon, 10 Jul 2023 03:33:29 +0000 Message-ID: <1408364e-6b73-7b50-e61c-470f3548a3a7@infradead.org> Date: Sun, 9 Jul 2023 20:33:28 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: =?UTF-8?Q?Re=3a_=5bPATCH=5d_kernel=3a_params=3a_Remove_unnecessary_?= =?UTF-8?B?4oCYMOKAmSB2YWx1ZXMgZnJvbSBlcnI=?= Content-Language: en-US To: Li zeming , 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 References: <20230711194331.4361-1-zeming@nfschina.com> From: Randy Dunlap In-Reply-To: <20230711194331.4361-1-zeming@nfschina.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On 7/11/23 12:43, Li zeming wrote: > err is assigned first, so it does not need to initialize the assignment. > > Signed-off-by: Li zeming Reviewed-by: Randy Dunlap Thanks. > --- > 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; -- ~Randy