Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp35151128rwd; Mon, 10 Jul 2023 03:25:07 -0700 (PDT) X-Google-Smtp-Source: APBJJlEqClK9Zu9rZOZ65ADNEU7V4a5NCsvZXyeebcIupwir2WOVxFDxLHp3jCWte1qiV1iseGh9 X-Received: by 2002:a05:6a20:8f0c:b0:130:1542:2681 with SMTP id b12-20020a056a208f0c00b0013015422681mr17268035pzk.34.1688984707521; Mon, 10 Jul 2023 03:25:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688984707; cv=none; d=google.com; s=arc-20160816; b=ovEgtDuFIQ+8GCAAWftvu29pdLlPPiyJu4O1FmABP+3EI0drMS2bOZhuIkYz81HGAT 5VjVlCIi8/lmr77Aej3uoqZjvr1So+0pLoDootX3rS3+2t5hn0P0HttzxkrgCXEW+z6s H/4WeWuk+RDZHNsBcENEclVmrsOTJ7eP2dJL+7Bnd7OPbk3rvII5HQ2Up6et+sbWdXGW H6v0P844xi/X1uN4AvKoUTBgpMEgMwR20gYihvr/QcqjaXWKyCMIeH0EitFYxHwWeGzl 4lYpF/2lBxDthnGjDAPIwMrf1P+HJ7Hiw9FLvzFnY87hmo3T6WwDgCgEQa2CQAoY82+R iZ6g== 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=qNBxBshnHdWM4iToxaB3rKufm0eMmPCJkmc7485uvXY=; fh=hs2HfzOR89UMZpvCgZFPS/qZMzOILH/w54J6AiKY4dY=; b=N9DyFGm11NlZfOuiG/er5Xj7BfmDGkXzL5TKGgUfAgl9qGK++K4uMA+0dAsB7w1WTQ YmMfMToQKYMRsxgW8nmKX9Ng+bWRVjCtwwhNfDxInI7w0A0pORrRDXbwSZsh3T+eXQ+b wz17LzqQQAkwCV9prwzL20tkn0/jYrk8bvt7u7Jf5Dr0Icjnqm849I7Uzcukh5xh45TU A6Jv90bG4WA+K8njl7NZ+VajKt0nRvbdRAeu5LigQl2P9fJToJ6zohwUBvYEZaJutC3r Jib7pWSNgcvfnHCAzisdh/zqdSW0r1J7mJH32ziaB/QbXLYqeDAyWeq2OIulPmTbTCrM MSlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XSXtss5+; 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 i185-20020a6387c2000000b0053f01212571si8977069pge.257.2023.07.10.03.24.55; Mon, 10 Jul 2023 03:25:07 -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=XSXtss5+; 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 S231553AbjGJJwa (ORCPT + 99 others); Mon, 10 Jul 2023 05:52:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231450AbjGJJvn (ORCPT ); Mon, 10 Jul 2023 05:51:43 -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 AA6C5E71; Mon, 10 Jul 2023 02:48:44 -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 3FB8560F7A; Mon, 10 Jul 2023 09:48:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 13AD1C433C8; Mon, 10 Jul 2023 09:48:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688982523; bh=smMst04IepMxRJUPoOQzmJ/MhSVOSpAQTL9lqbIyrAI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=XSXtss5+su/HP1ycJhTCUrcQYIlsIkn6IQ2AqTnNU4wEgpM2hnyEPWHalP3XhLcOP qEkfikeyTjovMXVzDSlutxgdOBA/EdKgepbEQADDJWXcrGMlBgC7bMpVR9K+3cyaO5 b7RKYSYnotEf/RXLgcJgPNPG+ctwmVZFq5kkvuhICTzFhqmckQfzOFlTmL1eiwcdO6 1bysVRISQNCKiU90rV4d9Igk8l1wsS415IkPlICYm6Tga1ZoZtk7QocyF+8+WI10Xa sN9YwQZXGFqPwEakt1DZtyzog9y+BlayCOlTgd+cqEoWOdetdpFlYCue7dhZySWrDh f9wS7DrOiRC4w== Date: Mon, 10 Jul 2023 18:48:39 +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 Message-Id: <20230710184839.4680f3e7983470c650cc24ad@kernel.org> In-Reply-To: <20230711185353.3218-1-zeming@nfschina.com> References: <20230711185353.3218-1-zeming@nfschina.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; 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=-2.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_BLOCKED,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, 12 Jul 2023 02:53:53 +0800 Li zeming wrote: > it is assigned first, so it does not need to initialize the assignment. > Looks good to me. Acked-by: Masami Hiramatsu (Google) Thanks! > Signed-off-by: Li zeming > --- > kernel/kprobes.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/kernel/kprobes.c b/kernel/kprobes.c > index 00e177de91cc..83e6f76fca04 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); > > @@ -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)