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: 12834969 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B2363C433EF for ; Tue, 3 May 2022 02:47:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=CwzlYE8rO3qSF5a07TMqD4IiECbLZu+m2uodTOv6zqg=; b=I7O7LGTIYWgcBY S0dfEH6txXCusQCz7jcLoyV5XTUWYXelCyHwKhmFDw/RgQhXIyN73cgVzatajkkOgN8XW1Ex+JKDS E4QzGlqyA9+yKdYZqfZ0ykcg2NtsFmEB+GbQNBG6cs2hOZBYGUKbTeVFXBFlMagyOIjwQ7r4pYiiN 4h/UTd1/ztg6PVi4APMxsKFm8YCd+A37Es0p0HyCgvqc4PgAGtWKaRSX78joFXFh+WsPy/bzE2j4p v7H7Wa7BN8t8HZHLtvQgGlpQ/aZ5wI2S6+CqWXGjjFk7Ki0RphwmR8kmDNCQ6Ank1BZc+vKpgcH76 A5CZ0SRXLztOyQjDKYhg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nliYQ-003TPO-8t; Tue, 03 May 2022 02:46:22 +0000 Received: from mga04.intel.com ([192.55.52.120]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nliYN-003TO5-0E for linux-arm-kernel@lists.infradead.org; Tue, 03 May 2022 02:46:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1651545979; x=1683081979; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=0glE8nzzXqDvLLZUoukgdh79WOnXvu208QqhSBt79JI=; b=Qg+hO3AhYmLdVsb61WyN8D1mR728tZYmVLEBkxLnk9jR77HhOoBVFW2F WXFAJHvf7KiYnxpV7AcG5N/XO8AIXNEQgufNK4dkMUjF5cpUBBp/Olyxl 1fOxJmCXUgieyDoJEGti1QCRnc74D8jhf+tjvhbSlqqhHCBfytz2qf7FZ p/2SYD6p5Bv+LLP8HwAOA/Im/Vn8MH6Zv9p5IYAKk0sVzJbTYAzU8iN42 nfE2btYppfd8RpJER3DBicjmrwDe69trUrgmB/Hkuq2w+YEQrA8ON1kDJ 3tLwyQoZHlK67W8KguBusLbrzXwUn2Tznmzxyj9xLjbV1HkJyaC71wP21 w==; X-IronPort-AV: E=McAfee;i="6400,9594,10335"; a="266229505" X-IronPort-AV: E=Sophos;i="5.91,193,1647327600"; d="scan'208";a="266229505" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga104.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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220502_194619_115649_6918F3CB X-CRM114-Status: GOOD ( 13.58 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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[] = {