Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1699679ybj; Wed, 6 May 2020 03:45:59 -0700 (PDT) X-Google-Smtp-Source: APiQypKIp1FK6GLwqY+HUOoBjj3rPDaqnzpuHnwvGKeezwpjEEphalln7/2VkCx4iwWEky/9S9x8 X-Received: by 2002:a50:9f85:: with SMTP id c5mr6315518edf.278.1588761959094; Wed, 06 May 2020 03:45:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588761959; cv=none; d=google.com; s=arc-20160816; b=fh0/wm9bEXWDL2Dp9m8tHSwHFiWNzpF15CJiVHT25N8KhZNgExAbM5Zf3Sk7AGYCt4 YLul1BGi8QyAxd03fM3dKSG8mrojEJR7ExYtLYVy52dnOAQSz18wSvbC7dewrfxKVzi1 Vwd4xJzp/7XGxhm1a99NU5w1BvOm04yF8MktAnDhxXNU2dJQf82+PSXaY++62+9BZUKg p/fJ94xB3PbJpCc3gdCtoBC741cHVixdbaCdc5J1nk0smnMcnPl7+1E/FTv6yFJZ/kEr 0t3D+jgN0brvxaiNOKS6EMTHHfRm3meWhGwKr93ef8l6dTqCaNxVsNqHK5DuEENrp0S+ SBYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=nqoEJhgS4eY8TSaQWuHHP4/uLstvamKFMMzw3GSpK1Y=; b=seLfoKduVaMDctxSIQB7NKhBJMi0011+jXzrPmfzyc18kz5poAaOkiYWDrlzrNs6m1 qMn9c+lbG5qH2g/QiWKVoKMolGR43874mRXXSNfcBOTBRUmO+UEW5OA7ujyK2fSipsB5 o8U+oOBjQ8arDRa2ldAEZVSPRtRu9P7G9/3U1qP9wLdr9z8v4iKvOADV+lrdc8aK4d0l 0EzezvXUdgdCEkgYZY7oWiZhIh43IZLTt49nidcfWFWPgKVJimvvKTqvAWMgPbSvIPTL jiVQ8/LE8i3PZdGkcWpaJuQgCvDcIqJXFlr4Opp5Ru87bzrwTYJU0Gw5M0a8mnqpjL1s mDRA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w10si896934ejn.246.2020.05.06.03.45.36; Wed, 06 May 2020 03:45:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728042AbgEFGTq (ORCPT + 99 others); Wed, 6 May 2020 02:19:46 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:3811 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726480AbgEFGTq (ORCPT ); Wed, 6 May 2020 02:19:46 -0400 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 31ABBB1B4892FA1B686D; Wed, 6 May 2020 14:19:44 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.487.0; Wed, 6 May 2020 14:19:37 +0800 From: Jason Yan To: , , , , , CC: Jason Yan Subject: [PATCH] ARM: OMAP2+: remove unneeded variable "errata" in configure_dma_errata() Date: Wed, 6 May 2020 14:19:00 +0800 Message-ID: <20200506061900.19832-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.21.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following coccicheck warning: arch/arm/mach-omap2/dma.c:82:10-16: Unneeded variable: "errata". Return "0" on line 161 Signed-off-by: Jason Yan --- arch/arm/mach-omap2/dma.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/arm/mach-omap2/dma.c b/arch/arm/mach-omap2/dma.c index 8cc109cc242a..ef5022bc91a2 100644 --- 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(void) 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[] = { -- 2.21.1