From patchwork Tue May 3 02:45:32 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: 12834968 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 33532C433FE for ; Tue, 3 May 2022 02:46:20 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 77A316B0071; Mon, 2 May 2022 22:46:19 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 728C46B0073; Mon, 2 May 2022 22:46:19 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5CA236B0074; Mon, 2 May 2022 22:46:19 -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 4ADA66B0071 for ; Mon, 2 May 2022 22:46:19 -0400 (EDT) Received: from smtpin31.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay11.hostedemail.com (Postfix) with ESMTP id 0AF3E81B74 for ; Tue, 3 May 2022 02:46:19 +0000 (UTC) X-FDA: 79422892878.31.49D888B Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by imf07.hostedemail.com (Postfix) with ESMTP id D0BEB40072 for ; Tue, 3 May 2022 02:46:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1651545977; x=1683081977; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=0glE8nzzXqDvLLZUoukgdh79WOnXvu208QqhSBt79JI=; b=Ov+QJ62Tjr7fG8voLhYX/YTP8iVJG/bb9C831F16WSWFr51dqAwmn8rE bPhvHvtRBn4R4VUQmwk6g3poUpk9P6IYGVksW/TpY0BYJ+X4G0RPWZN9l hO45qpZiLMtwhccVTYAUf130Y67WeFE2VFjjqu5E43G0n9M6+ppqhnCro dLedSjKryTzXPOO6GlsLopUld0Ljq0cjuFWjax2Pfp9iY7SAoHJj202pg 2plqlK+GbCFPVwAaP3WmL8NlrXRNsdXgZq+USE/vlFbsAaeRxEdpu3RoK opSiHUMnsHWzD1o1yapVI3oHJudHmuSYKi63yj+YTj9ltcSqE0cl1770C Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10335"; a="247289717" X-IronPort-AV: E=Sophos;i="5.91,193,1647327600"; d="scan'208";a="247289717" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 May 2022 19:46:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,193,1647327600"; d="scan'208";a="653090183" Received: from lkp-server01.sh.intel.com (HELO 5056e131ad90) ([10.239.97.150]) by FMSMGA003.fm.intel.com with ESMTP; 02 May 2022 19:46:14 -0700 Received: from kbuild by 5056e131ad90 with local (Exim 4.95) (envelope-from ) id 1nliYH-000A5V-QF; Tue, 03 May 2022 02:46:13 +0000 Date: Tue, 3 May 2022 10:45:32 +0800 From: kernel test robot To: Arnd Bergmann Cc: kbuild-all@lists.01.org, Linux Memory Management List , Tony Lindgren , Russell King , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: dove: fix returnvar.cocci warnings Message-ID: References: <202205031017.4TwMan3l-lkp@intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <202205031017.4TwMan3l-lkp@intel.com> X-Rspamd-Queue-Id: D0BEB40072 X-Stat-Signature: hfiwejidkas3mwx1pkgms3t7utoy34wu X-Rspam-User: Authentication-Results: imf07.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=Ov+QJ62T; spf=none (imf07.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 192.55.52.136) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-Rspamd-Server: rspam09 X-HE-Tag: 1651545973-724134 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 arch/arm/mach-omap2/dma.c:82:10-16: Unneeded variable: "errata". Return "0" on line 161 Remove unneeded variable used to store return value. Generated by: scripts/coccinelle/misc/returnvar.cocci 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: 9f9b9a2972eb8dcaad09d826c5c6d7488eaca3e6 commit: 09f6b27d5ddd9ad0ec096d1b0f8decdacc70f0f8 [1066/8035] ARM: dove: multiplatform support :::::: branch date: 15 hours ago :::::: commit date: 4 weeks ago arch/arm/mach-omap2/dma.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) --- a/arch/arm/mach-omap2/dma.c +++ b/arch/arm/mach-omap2/dma.c @@ -79,8 +79,6 @@ static const struct omap_dma_reg reg_map static unsigned configure_dma_errata(void) { - unsigned errata = 0; - /* * Errata applicable for OMAP2430ES1.0 and all omap2420 * @@ -158,7 +156,7 @@ static unsigned configure_dma_errata(voi if (cpu_is_omap34xx() && (omap_type() != OMAP2_DEVICE_TYPE_GP)) SET_DMA_ERRATA(DMA_ROMCODE_BUG); - return errata; + return 0; } static const struct dma_slave_map omap24xx_sdma_dt_map[] = {