Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp25582335rwd; Sun, 2 Jul 2023 20:52:32 -0700 (PDT) X-Google-Smtp-Source: APBJJlFAQTZNLY9m+azD4cCp8+bD/pP0HPY3PYve6Xegp6gg3QyBOAvoPrnOmGwHO5X8EO0zE5jL X-Received: by 2002:a05:6830:18f5:b0:6b8:c0e0:3ee5 with SMTP id d21-20020a05683018f500b006b8c0e03ee5mr640385otf.36.1688356352542; Sun, 02 Jul 2023 20:52:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688356352; cv=none; d=google.com; s=arc-20160816; b=vazePvHWjL8ENNVsefb2ma2Htljq7+M1R1jOGlhssyqe8vjNFOwF7dpl7oL6ZygvXV pusnwa5oiS3rqXoy5yxTn+WnzKcN+cwYJb5OW1jgjAap2fPkFM1/fmYIdNdsgeb+q5NB 7SfjGUpf1SeVBuBFefm/Yw7yNf+dLUSSxh+C4ki5MdlyKDMTwHtpU0uEhPucDLg8F7uJ x8J8x94UWLjA4o5byJwauktdn8tCHKavZSJ0jYOxoc9N1fBgSAAsEqDr52r6WaJgH3pJ OLx5qC+2tjnsq5jfq2/+YtmUUcYiZE4ivN5st3cfR3OkQCgJSzcsRo8Ja+lmA5LpmC/N GMkA== 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=HyysLXI6Wdq/NTfrXqefDS0k0w1pocUm56M2Jhqy9pc=; fh=MDcLyW7gnQ7zhVrwu4ydSY34K8iXsxgpLnkzEl2cuwA=; b=zgpXTQGp/G9Nb1T8oHrXCjAZ2Ips8XyB3MB8YZz3Et5Cy+bQzMTejIU1IuB7a3cegf 1EpcNQseP9NY8fnr7WEZtZEELv6Y5cGDY/I45Csecssm9EdfzaaA8Ic/9WoA2aI9l7Sk nx747n/LAxAVN25ZsuBP7s13CwrPtWF+ksQXp0sWsDxkhmFOE/usN2szTkpJ+xdky+7S UetQjHxniQKXlhVBDQk8abqSRNw+759D7yUsGmr5W/47F18QbeBBjIddxizck8UbSE69 PsTkiwLpyH/9Hh4TdYRVA6lLJtxyS0StB91kZEI6eQWDLWpxDEDh9UC108C2S+lDaUn8 UgTQ== 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 j184-20020a6380c1000000b005501b28fc02si17879582pgd.50.2023.07.02.20.52.18; Sun, 02 Jul 2023 20:52:32 -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 S229884AbjGCDju (ORCPT + 99 others); Sun, 2 Jul 2023 23:39:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229482AbjGCDjs (ORCPT ); Sun, 2 Jul 2023 23:39:48 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 60B23123; Sun, 2 Jul 2023 20:39:47 -0700 (PDT) Received: from localhost.localdomain (unknown [219.141.250.2]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id C32586091588A; Mon, 3 Jul 2023 11:39:37 +0800 (CST) X-MD-Sfrom: zeming@nfschina.com X-MD-SrcIP: 219.141.250.2 From: Li zeming To: naveen.n.rao@linux.ibm.com, anil.s.keshavamurthy@intel.com, davem@davemloft.net, mhiramat@kernel.org Cc: linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, Li zeming Subject: [PATCH] =?UTF-8?q?kernel:=20kprobes:=20Remove=20unnecessary=20?= =?UTF-8?q?=E2=80=980=E2=80=99=20values=20from=20ret?= Date: Wed, 5 Jul 2023 04:10:56 +0800 Message-Id: <20230704201056.3352-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 ret is assigned first, so it does not need to initialize the assignment. 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