Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2126573rwb; Sat, 8 Oct 2022 02:45:15 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4WsQS2CuCmWyxX8ZO7Q+LAhZ1xztMsZ3Q6+hAr/GlQtVeDplFlfX4R9MY5jw4/M8GuUPf8 X-Received: by 2002:a17:906:fe0a:b0:76f:e373:d84b with SMTP id wy10-20020a170906fe0a00b0076fe373d84bmr7252470ejb.297.1665222314834; Sat, 08 Oct 2022 02:45:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665222314; cv=none; d=google.com; s=arc-20160816; b=Ax5VXIdRIETMqAWm8QS6wyL+I6BnI8MY4yvSA3iwwN36z5GABQsH5/QahC4TGvmk8c wVbY3Fa3oSQ7H/PubJSRmM2ypPEyBB2hGILYA2902HWvZCeFpJY+QI9ZkFz5ZI8RnU6H iyOubTYuK1jeOLaYJwSfmyVuenG0QxrrgJS1ZrPVmf0pt+1Q4yk46hLguV4oQiAfkImv mwmTUHMzKYCM+PTAldfu5x7aYLoxqKCcaYreCqC5461TBr5WGp2ezB1JRY8xxIFIJ+e/ HIzQTpLPNb/qid/iSGbEEurtZXyyx0q7F3JCAXVuPiJkGXyqEGTIIPSuE4wlTdzNgZ0Y NVkQ== 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=mIl4VKKbyz/sGY+cnAvNKaLu8VTtmpL2mF3nO+n7Jc0=; b=n99rPufeE+EVyJMINn6rlsfsNpyR0J4NEsEoVtnNgazYZkVZ+tyIx+a/VvuaKNOk89 tS4P4998I73PdFyikWUwCieKwcpuhyl6cXOFM2eTe03uiNeaIJCaZeQVuz1Y7lLh31Ad h4QSif845HK8vCgL4MV9UMCJPurxYR6i5lqE+C79a17CCJ37FRyfdTe/Tkz0gWAl0hUb HgyaZKm1RfC4qIcK4oQDLKGruoOSqYxi1FAVY56KZ4qUPz6e5I73h9gw1/9UuS7wtFEu vORWi1GO653HqIs5oGtsb0N2feAy6oYU1GWq8dYoDghwaHe8LoKe5Sw98MfrzANQgu0g 9NAw== 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 la26-20020a170907781a00b0078d8f2658e3si2038702ejc.833.2022.10.08.02.44.49; Sat, 08 Oct 2022 02:45:14 -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 S229800AbiJHIsY (ORCPT + 99 others); Sat, 8 Oct 2022 04:48:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229452AbiJHIsW (ORCPT ); Sat, 8 Oct 2022 04:48:22 -0400 Received: from mail.nfschina.com (mail.nfschina.com [124.16.136.209]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C848B4C027; Sat, 8 Oct 2022 01:48:20 -0700 (PDT) Received: from localhost (unknown [127.0.0.1]) by mail.nfschina.com (Postfix) with ESMTP id 7EBBE1E80D72; Sat, 8 Oct 2022 16:42:33 +0800 (CST) X-Virus-Scanned: amavisd-new at test.com Received: from mail.nfschina.com ([127.0.0.1]) by localhost (mail.nfschina.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0ndyINIC0L9d; Sat, 8 Oct 2022 16:42:30 +0800 (CST) Received: from localhost.localdomain (unknown [219.141.250.2]) (Authenticated sender: zeming@nfschina.com) by mail.nfschina.com (Postfix) with ESMTPA id C5B121E80D4D; Sat, 8 Oct 2022 16:42:30 +0800 (CST) From: Li zeming To: jhs@mojatatu.com, xiyou.wangcong@gmail.com, jiri@resnulli.us, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Li zeming Subject: [PATCH] =?UTF-8?q?net:=20sched:=20Remove=20unnecessary=20?= =?UTF-8?q?=E2=80=980=E2=80=99=20values=20from=20err?= Date: Sat, 8 Oct 2022 16:48:08 +0800 Message-Id: <20221008084808.4650-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=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE 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 The err variable is assigned as it is used, it does not need to initialize the assignment. Signed-off-by: Li zeming --- net/sched/act_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/sched/act_api.c b/net/sched/act_api.c index 817065aa2833..19e4cef35e09 100644 --- a/net/sched/act_api.c +++ b/net/sched/act_api.c @@ -257,7 +257,7 @@ static int tcf_action_offload_add_ex(struct tc_action *action, }; struct flow_offload_action *fl_action; u32 in_hw_count = 0; - int num, err = 0; + int num, err; if (tc_act_skip_hw(action->tcfa_flags)) return 0; -- 2.18.2