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: 12787433 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 805F7C433F5 for ; Mon, 21 Mar 2022 15:46:09 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 136AB6B0073; Mon, 21 Mar 2022 11:46:09 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 0BF738D0001; Mon, 21 Mar 2022 11:46:09 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id ECAC26B0075; Mon, 21 Mar 2022 11:46:08 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.26]) by kanga.kvack.org (Postfix) with ESMTP id DA8CE6B0073 for ; Mon, 21 Mar 2022 11:46:08 -0400 (EDT) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay12.hostedemail.com (Postfix) with ESMTP id 7DBE712104F for ; Mon, 21 Mar 2022 15:46:08 +0000 (UTC) X-FDA: 79268819616.01.CB263CA Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by imf01.hostedemail.com (Postfix) with ESMTP id 786DE4002D for ; Mon, 21 Mar 2022 15:46:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1647877567; x=1679413567; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=pu7vZcm3vds3YMiUNrGH7dI0e1cLyRyYAZeDHVPZQ6Q=; b=DSvjMQ+KXwclP5xXJcdMJlqbgtgvdmlnkvxds++PBMS65qY/uRt3kKQT ByH8nppdnzIVjrpfJBhNnF4troInZQDT/4ZjirxXY/IeYrmy7V5jfSTvf 6s4VOwjjFS9ftp0rxm59RoPJQMNydT1dKTNIlWROe/6HHgD0ftAKa6NVq mf9icqz5KCQwer3WAMDywv+FPEMSBIIccp0N8GxJ3EzaQAasUGOwGSN01 mO4BBCZDklbfxI60Mru4rRx/Dj1EncQvHW9Ta9q595f5hMf+7SyokQ765 7IAMfPS9iO3nEJ1GxTW2gYiOpZ2DmypCRyG6rDa0nr9DnBqGxv2oXrVsm A==; X-IronPort-AV: E=McAfee;i="6200,9189,10292"; a="255145815" X-IronPort-AV: E=Sophos;i="5.90,199,1643702400"; d="scan'208";a="255145815" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga102.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) X-Rspam-User: X-Rspamd-Queue-Id: 786DE4002D X-Stat-Signature: sdhj8ey5hfcscrdz34hws3hq8bmd3w4i Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=DSvjMQ+K; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf01.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 192.55.52.93) smtp.mailfrom=lkp@intel.com X-Rspamd-Server: rspam03 X-HE-Tag: 1647877567-748845 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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. */