From patchwork Mon Mar 21 15:44:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: kernel test robot X-Patchwork-Id: 12787427 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1507EC4332F for ; Mon, 21 Mar 2022 15:46:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350515AbiCUPrk (ORCPT ); Mon, 21 Mar 2022 11:47:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350522AbiCUPrb (ORCPT ); Mon, 21 Mar 2022 11:47:31 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F52357B1A; Mon, 21 Mar 2022 08:46:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1647877566; x=1679413566; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=pu7vZcm3vds3YMiUNrGH7dI0e1cLyRyYAZeDHVPZQ6Q=; b=OwwM4e0zBZMujiHvgXO59HILe3VFiiULSooFeeVYYblWArgMOcNYXkoK dQgvLawtRUmEB/cOhM1wkNYWNMK4Eey/WUX7nhQ0LwMw/GENJarNvZxwD A7gtB2BXFRiR1gGNRfpt7W6tpiV88gewn5VMNkPPfubyasZBHbSPRF0NP QFUWTgmf11FqCenETH7Uy3j6c9/bVID3L+jfxsz6fDO4gg+SsExCTISc1 A7YkVaQpoFIaMjXQ0jM0ORHSbtSzCC0zF7NdZ7eAfZr1s4zdrxR06Ao+r 8nVNlXaYUNhb6OoiH3fAiHT/qiTvRkltt/45DvqLXwky1sXamXl7z7l26 A==; X-IronPort-AV: E=McAfee;i="6200,9189,10292"; a="282409575" X-IronPort-AV: E=Sophos;i="5.90,199,1643702400"; d="scan'208";a="282409575" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Mar 2022 08:46:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,199,1643702400"; d="scan'208";a="582906172" Received: from lkp-server02.sh.intel.com (HELO 89b41b6ae01c) ([10.239.97.151]) by orsmga001.jf.intel.com with ESMTP; 21 Mar 2022 08:46:03 -0700 Received: from kbuild by 89b41b6ae01c with local (Exim 4.92) (envelope-from ) id 1nWKEM-000Hww-O1; Mon, 21 Mar 2022 15:46:02 +0000 Date: Mon, 21 Mar 2022 23:44:57 +0800 From: kernel test robot To: Roopa Prabhu Cc: kbuild-all@lists.01.org, Linux Memory Management List , Jakub Kicinski , Eric Dumazet , Sebastian Andrzej Siewior , Eelco Chaudron , Ido Schimmel , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] vxlan: fix returnvar.cocci warnings Message-ID: <20220321154456.GA30106@e0e7ddfdfbf7> References: <202203212331.4ZEJaAXK-lkp@intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <202203212331.4ZEJaAXK-lkp@intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org From: kernel test robot drivers/net/vxlan/vxlan_core.c:2962:5-8: Unneeded variable: "ret". Return "0" on line 2971 Remove unneeded variable used to store return value. Generated by: scripts/coccinelle/misc/returnvar.cocci Fixes: f9c4bb0b245c ("vxlan: vni filtering support on collect metadata device") CC: Roopa Prabhu Reported-by: kernel test robot Signed-off-by: kernel test robot --- tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 6d72dda014a4753974eb08950089ddf71fec4f60 commit: f9c4bb0b245cee35ef66f75bf409c9573d934cf9 [8808/13988] vxlan: vni filtering support on collect metadata device :::::: branch date: 3 days ago :::::: commit date: 3 weeks ago drivers/net/vxlan/vxlan_core.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/drivers/net/vxlan/vxlan_core.c +++ b/drivers/net/vxlan/vxlan_core.c @@ -2959,7 +2959,6 @@ static void vxlan_flush(struct vxlan_dev static int vxlan_stop(struct net_device *dev) { struct vxlan_dev *vxlan = netdev_priv(dev); - int ret = 0; vxlan_multicast_leave(vxlan); @@ -2968,7 +2967,7 @@ static int vxlan_stop(struct net_device vxlan_flush(vxlan, false); vxlan_sock_release(vxlan); - return ret; + return 0; } /* Stub, nothing needs to be done. */