Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp282500iob; Mon, 2 May 2022 19:46:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxR64uEYSvMtZBan97aVtGikC2oqUNGUtV10Z8TyyYyC8sAmk1WMbJHzJSWIMMzbp898dU9 X-Received: by 2002:a63:2357:0:b0:3c1:42fb:cd7f with SMTP id u23-20020a632357000000b003c142fbcd7fmr12146376pgm.468.1651545990521; Mon, 02 May 2022 19:46:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651545990; cv=none; d=google.com; s=arc-20160816; b=EqQcIMft2v2MCdNFjoyDbi5zOSxXCpIVzSR0icW8E2s9bGGtHle8Gc2dXXPme1AMeu QE0P1yOUxCcG5cVkCYr/KITu8DQCOggjaa8JAEvGvwYf43l/NmtYDKLF6OS7ICPwx4Cf jHiKSVbVx8oA+3cuxRv3lnHZ7dbc572RDos7oRBqHDuHWpJqUuIyAlJ1RCFFh0xtc09h 3Z3S7xi0KH7AA/SPGAtGB0r/9LOZIjFP5I6cZbjMdN2QydTOCam8qI37wAs50UrHyafm DDCEyunIce2v3An6ETkubT/MFVwqDBUA5DL5ffsmfUW+FKvLH/opkNtS+oCx/RszVmwN Nl2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=jDDI3bcALDL/s+4TliPFmRfjjSf3Hx7SZ/a7Fj1Hono=; b=zOr1R9GTh2NHfaVtpZyZLyZ6MX9eUMMcOYk3j5IxyUMRdYuAGXpjipYkWGK9My25SG wpimRU4F+H33SliJdXtojcVIyYOvVaIhV7nvrcB3p+fEfWVmSoarYiivKihy++RqB/0i ORO19jDcnQJv13xFsT+F7tui4j7XvJ2siZ2Ojlzs/t4Ro+dnxYV53bMEIEfmIDv511Qe tE+E2vJmBREIVP2L8pSGhvXNH4XlEaMIr+forRpzvzhPuGCs9iuv0ZqTyFyRNonrHFq/ ue5vcBccvHMtCJBbgOqbhTDoQaDVT7LnQUiBV5bN6xw/mq/Tq8W8tP9IUNAQSDOypN0D U9sA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=MCkwdDBG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id w191-20020a6382c8000000b003abaac3b51esi13698875pgd.700.2022.05.02.19.46.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 19:46:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=MCkwdDBG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 75BF836E32; Mon, 2 May 2022 19:46:28 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230192AbiECCtt (ORCPT + 99 others); Mon, 2 May 2022 22:49:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230179AbiECCts (ORCPT ); Mon, 2 May 2022 22:49:48 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFB0735864; Mon, 2 May 2022 19:46:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1651545976; x=1683081976; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=0glE8nzzXqDvLLZUoukgdh79WOnXvu208QqhSBt79JI=; b=MCkwdDBGILoiQtv1lqw67mYoFO6WtWQLt1DmJywFefBOIHH0QcAzywOz ht+93EnKZt8oj6xfE7DZEtsXMt8yUs1T5nuffkIj0CRNAlZSO+r/V8WDc dFER8VobKzu+1hfKPeNkJN0Q2jzFElf6Ez/OkqobFsW34tFk3Lq76aptC H4Cq9PuzQmiss9yq00mUffksX1iIsSTeYGTttqDDRqeD5AEzqGPp0l/UF Tv+FiigvuEmmpRkQkPCfdQ2mgsN5iobY0CCusbIXEY2d9V0kpXjfIuvlF mFm054jKyUDpobGuy0UYeJLkp2n4rpUt7OWj+jTA3vvWMXR9r/CeSrjlm Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10335"; a="254843575" X-IronPort-AV: E=Sophos;i="5.91,193,1647327600"; d="scan'208";a="254843575" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga101.jf.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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202205031017.4TwMan3l-lkp@intel.com> X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 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[] = {