Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp30503829rwd; Thu, 6 Jul 2023 06:56:53 -0700 (PDT) X-Google-Smtp-Source: APBJJlFbxqhCTOAd6GcHXt0kye7TezH+w5dLlzyxfhz+cm4I3t7vUA5/H53djSpf7eGR1NOXPWsi X-Received: by 2002:a05:6870:9114:b0:1b3:ccfd:737 with SMTP id o20-20020a056870911400b001b3ccfd0737mr2365254oae.31.1688651813164; Thu, 06 Jul 2023 06:56:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688651813; cv=none; d=google.com; s=arc-20160816; b=c8s2vw0TF6u/03GBuULAUTVyyFVVXnI9fQngFEd8pHZw7SIJt+n5BTTGFS6p3iCypn zaza3yJ9r38KmO/rjYto4uzuFVro4zZVZiGxLaXKWsqNNmnNmsyNu/xcJnc7DcXAesPT udXXbpMYxtuhGyW6n5++U6Hw59GgX0UCxo7COR1rtf/vQmUtowx2B5Oywb4cUKVHMC4j 6vEofQwMHvxcOGyiJQbfMBeCaMpOxAcKw5iIabUurzcIxzQixatAEIdV4P3HxoUeJxLS h5H5d/8eRttHtWRpWk1ICMLIFQFVFwOtsuzRJWO1YeWustzRH18iCmheRLHC1g5nF1Py Wbeg== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=tWblOGWrDveG5zNRWlBGk4UqyplrBR+nto9b2GN+U80=; fh=hs2HfzOR89UMZpvCgZFPS/qZMzOILH/w54J6AiKY4dY=; b=eG9lRUnPDo0B/0gcdl8HFQvbvYF0Tr89QEJpr4hlhHD/ZNbJIYmu89JduHTS08RMgd 2PTyecaOg9oYPkJFc7aaanJN5Nr81WOGsRnMp1jlfHbDeCVCUYEOKx+x7siQ9rzxn1yW uG3xHQDcfwzGd3BHkyJtZIw6jLCMlui+4URfdJcdBUhC5D5Nvq07GIHCElen6mfv6tUQ C/bqxqQa8kpz2H8qy8r1NZhowMjibCtFx/FIpBw49/jusgFaP1ITQgU9cYRjfOdSNzVH 4DrFrKzCdYSEX3hFgYkhrr0nxP0ELkuxaHrEAH5xx78CvKptxWeepCLIU8DMC1kf7l/9 Xtnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RHrvdu5U; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mm5-20020a17090b358500b0024e43558fbdsi3591755pjb.129.2023.07.06.06.56.40; Thu, 06 Jul 2023 06:56:53 -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=@kernel.org header.s=k20201202 header.b=RHrvdu5U; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232178AbjGFNhT (ORCPT + 99 others); Thu, 6 Jul 2023 09:37:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229501AbjGFNhR (ORCPT ); Thu, 6 Jul 2023 09:37:17 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FDF08F; Thu, 6 Jul 2023 06:37:16 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B18AE61927; Thu, 6 Jul 2023 13:37:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5B445C433C7; Thu, 6 Jul 2023 13:37:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688650635; bh=5xsDFMqKiKcb2GYFWhTiN6rPXWfblS1mUzchy+w1xDg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=RHrvdu5Uj7cAqAyDgp0i5NO1d8iIZP9KrKs2nGX87TOW7L5pO4fpt1/GpPgyTV6aI GuNNMZZ5QP/NFhmWGJz9vC2vQnwH/aE5etRMn2rz+k29zxN7Jmrv/1n5JabfAimgwE CblqGpIpi3ygL9ulgfcLzFP0fdwmUjQxIYkC7TLk5mhj86sm7GbDB6+xlYBglN7VXm X/6qrbSTTZm+YBaRihpPMhj0wF2duhBvSLXqDcolrZoSOR2h2kKJXh1G7rPHXWgVOm 9jS6KILvLkbUyqkH2xqejWrAdh0ikBNpPl/5Z0DFxgXEUMHp/vDNO0XVe8BYjLweyY xC91EDHU0UTDA== Date: Thu, 6 Jul 2023 22:37:10 +0900 From: Masami Hiramatsu (Google) To: Li zeming Cc: naveen.n.rao@linux.ibm.com, anil.s.keshavamurthy@intel.com, davem@davemloft.net, linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org Subject: Re: [PATCH] kprobes: Remove unnecessary =?UTF-8?B?4oCYMOKAmQ==?= values from ret Message-Id: <20230706223710.58284736311727766cee345a@kernel.org> In-Reply-To: <20230704192107.2944-1-zeming@nfschina.com> References: <20230704192107.2944-1-zeming@nfschina.com> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,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 Wed, 5 Jul 2023 03:21:07 +0800 Li zeming wrote: > ret is assigned first, so it does not need to initialize the assignment. > > Signed-off-by: Li zeming Looks good to me. Acked-by: Masami Hiramatsu (Google) Thank you! > --- > kernel/kprobes.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/kernel/kprobes.c b/kernel/kprobes.c > index 00e177de91cc..db8a3aa53cf6 100644 > --- a/kernel/kprobes.c > +++ b/kernel/kprobes.c > @@ -1072,7 +1072,7 @@ static int kprobe_ftrace_enabled; > static int __arm_kprobe_ftrace(struct kprobe *p, struct ftrace_ops *ops, > int *cnt) > { > - int ret = 0; > + int ret; > > lockdep_assert_held(&kprobe_mutex); > > @@ -1110,7 +1110,7 @@ static int arm_kprobe_ftrace(struct kprobe *p) > static int __disarm_kprobe_ftrace(struct kprobe *p, struct ftrace_ops *ops, > int *cnt) > { > - int ret = 0; > + int ret; > > lockdep_assert_held(&kprobe_mutex); > > -- > 2.18.2 > -- Masami Hiramatsu (Google)