Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp30553792rwd; Thu, 6 Jul 2023 07:31:46 -0700 (PDT) X-Google-Smtp-Source: APBJJlEXMKZ5t9o/4Q1E4roZjCcMR4D3If34E99QyHPc3W7cdUGimqNYXq4Vgn7+3X2s8DDjMnkI X-Received: by 2002:a05:6a00:39a3:b0:682:5a68:5645 with SMTP id fi35-20020a056a0039a300b006825a685645mr2222583pfb.11.1688653905783; Thu, 06 Jul 2023 07:31:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688653905; cv=none; d=google.com; s=arc-20160816; b=McNav/wzhDPazy6UUQj5est9kBVq2BD1lBqedgDC8jfHj6IgK6lRTdWK8h45zYMbUN ybxITgiBlrnTTFLSSjLMRZAzdL6eA2GItPj1eeQYxcg/uwcm/d9pTMJn3Gyb+sIWzmXj JXYGcKoEBQoZJVZsfKOMKbxwjxVZ3n+lCTH1fvPmssrNR5YAML7FGrWuDe9bfMX8dlob YUuHqaLy9uEagvSVX/bSea8ekzA2y5Q/r5DpxUa/rTWgJoMnWJgsHvCduXelh05Pm4eD RwMhWa36a6b5FozpUhNwT6Pm4DQNwhTHRh0nf2ezVxlIE2jkxHqUuhj0BWgLvGVx8WEB dQqA== 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=HcsgIsfLpihgxrgBjdMbw5jlCKLMGqVRU/DiP+LPuT0=; fh=hs2HfzOR89UMZpvCgZFPS/qZMzOILH/w54J6AiKY4dY=; b=R4igLYrTWSF15Ew8J5et0fu83AQvjclG+J7YBD4Po3alHtjwJGaWVgr9O8v5R7lLYW 9B4lb8RtOmxXgC0kfDNHeoxJmFXAb55uBVyZmiH72CHQaCY3hxCVEbOLIvZeO3iw6sbC vdwhn8pzaU1BhHLn0G98svmI945VrqANAdsHlx9psmGEWn4paB+cLSEN0bjaWj7hI1BA ji6YaJfITBIPQf6MuCux2hBhxj2IRWCFh2BMH+FYSRkrbI1UTOddCx0ge6HIcNcrvnoe 4hyUwv0YhZqGo7eVRmxWcJHzbCaz58lLAU+3Zs7VvYPHRe5Ff1G9lybWRRFKVRbxKvwm mb+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nqP5sEaH; 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 be16-20020a056a001f1000b00682bec0b685si1450114pfb.237.2023.07.06.07.31.27; Thu, 06 Jul 2023 07:31:45 -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=nqP5sEaH; 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 S229536AbjGFNkd (ORCPT + 99 others); Thu, 6 Jul 2023 09:40:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229693AbjGFNkc (ORCPT ); Thu, 6 Jul 2023 09:40:32 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0083131; Thu, 6 Jul 2023 06:40:31 -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 3E4676192C; Thu, 6 Jul 2023 13:40:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D0614C433C7; Thu, 6 Jul 2023 13:40:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688650830; bh=++e4KEfyGa8uNa5HRMomjPJxKC/zgtp/avpeQHuft60=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=nqP5sEaHUeJpJeFtAh65LAPbnt5cYSBKQpW1QuuKQIVWJuUqxDtdCxSlflCpY5VTF 9f/wvg2Jv6x7idkLzly83vrRNXsg74Yi5k49rzF4OmKdGpzLpvVaGA4xoxEKBD+LPj LdGrcIjaNDiXwyqKh0dv7TBD+fRmU5CoV6dWiSr1/zE4NIXPvBxEhmCwJd5zI6UboF 4jQ9oCCKmCo5nxQw5Hi3rxLPyPa8FxpbHRC4+iWCJD3Khc/QBaCuD0K15/TJ61mENL 2ffEMVlwtnjGfAqQ2YpvXxewDTZOj4cy4Du01w1hbHVYHVXd00A4crm7rPl9TYN6wJ +obaiAJbw+XYA== Date: Thu, 6 Jul 2023 22:40:26 +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] kernel: kprobes: Remove unnecessary =?UTF-8?B?4oCY?= =?UTF-8?B?MOKAmQ==?= values from ret Message-Id: <20230706224026.9a29f4f4deb9da74a83bb848@kernel.org> In-Reply-To: <20230704201056.3352-1-zeming@nfschina.com> References: <20230704201056.3352-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=-7.2 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_HI,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 04:10:56 +0800 Li zeming wrote: > ret is assigned first, so it does not need to initialize the assignment. > OK, but can you merge this to the first one? https://lore.kernel.org/all/20230704192107.2944-1-zeming@nfschina.com/ Thank you, > Signed-off-by: Li zeming > --- > kernel/kprobes.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/kernel/kprobes.c b/kernel/kprobes.c > index ec50f9f380c1..a009c8ccd8ea 100644 > --- a/kernel/kprobes.c > +++ b/kernel/kprobes.c > @@ -2692,7 +2692,7 @@ void kprobe_free_init_mem(void) > > static int __init init_kprobes(void) > { > - int i, err = 0; > + int i, err; > > /* FIXME allocate the probe table, currently defined statically */ > /* initialize all list heads */ > -- > 2.18.2 > -- Masami Hiramatsu (Google)