Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp358876pxj; Thu, 24 Jun 2021 00:29:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1FURAWjG05k9FgGhC6BzfmcRNhL5JEJ1MPmGF85x9j4A6WzkbBWP39dbBbrDyG7IpbN2p X-Received: by 2002:a5d:804c:: with SMTP id b12mr2917436ior.15.1624519784465; Thu, 24 Jun 2021 00:29:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624519784; cv=none; d=google.com; s=arc-20160816; b=nDsCjzEzQ1JJN2cm51hSpCru0RbjDMunXs7VqVrhNhnWeicjkb8M6+GYu2KgVzqmQr QOtgigWdRj9By8SNHNn+GOpYQ1ZwN5KRtC3lH8SHv+VDRaivTplA4HV+bi74HQoD8gqO WZFWLGEtK7kvWG5gM4myKwZvc0zOXi/MEkGogYMT02dP2d5IdLSKoqCo6FUDWix8oqZV +Bu6xUjlCNC+KVQl3f7ozr8rjNSW1Qtpg4KuTGoguoTAD2fBu8CD8EohaFeFuN8lSMJK p7pp3/JUKUu31t36/6NCrXjYjFyc+x/9diNTOlvjXl1JRecKKuopQXqU9Fo5k50aXoR3 wXkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=G1JEYhqSFm1y2jZMFU+nvmNL2Z9dp8rh+B2bQpR6PGs=; b=lUEWZELpKKbshEkGnHiUPAoFV5qIVrvsVTIW+WO7DB6a257LzzoG1Zz8nkEFhfEgSg Hu9xbf7IoALn5P1pkMJ7ieS9cTy24JYB2EVawPwYjG1z2mrY/ZwX3TCFkJxxxPXhxzTp ZL0Yps1r75xw1m3C+KEIzpiKVtHbK9fKZwwTk6KHcyC3FykNMicTz/1nDcwsoeR1I+jT GWu5wpRwF6As9LHapPAWlvzIozJuP86mBMLoQD7MMONrm6cehxyGhqj2etVZxrz/Umqg MfnwGORGG4UmBNKHQiMyOvOMi+ulIVqof3rAPJHUxxCT0wl5s37QplDe5LS/QR1Ko+rt ZPxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=TwQAIQDP; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m25si1589784ioo.79.2021.06.24.00.29.33; Thu, 24 Jun 2021 00:29:44 -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; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=TwQAIQDP; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231592AbhFXHbN (ORCPT + 99 others); Thu, 24 Jun 2021 03:31:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231434AbhFXHbM (ORCPT ); Thu, 24 Jun 2021 03:31:12 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2641FC061574; Thu, 24 Jun 2021 00:28:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=G1JEYhqSFm1y2jZMFU+nvmNL2Z9dp8rh+B2bQpR6PGs=; b=TwQAIQDP5X5MeSdELo3dCno+l GWR6CZDtYBvm3Z0tZr35Uk1Snw1t7656q1c6wGjuE14zHCsVCbBf5GQ+bU5QPBTZdM8vV/LMZQ61b VaBr/0GWgw+VH9n1HWb2ECmuJnSD/naSePsiGf6HVCP3xtuUjJ0iMZH6KeHWLetmKj16mLhm0PED/ MSUhqYvNntfh6wBQ1gkj7/GufgMz+y2GmH1m2E/OpJZMSpkn4hmlblvQTAsugwLuXdYOI+3YkzFPE 1e6BHE2ZBLsGhdjgvTzu1XXLgMhroHuJeUHwsZFp42tG+0oiaREwjqXDeiSmXYlwV+J7hiYkE2RM2 lM/jWuGvg==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:45296) by pandora.armlinux.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lwJn1-0007JR-4G; Thu, 24 Jun 2021 08:28:43 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1lwJmw-0005WS-P9; Thu, 24 Jun 2021 08:28:38 +0100 Date: Thu, 24 Jun 2021 08:28:38 +0100 From: Russell King - ARM Linux admin To: 13145886936@163.com Cc: tony@atomide.com, linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, gushengxian Subject: Re: [PATCH] ARM: omap2: remove unneeded variable: "errata" Message-ID: <20210624072838.GA1343@shell.armlinux.org.uk> References: <20210624032751.24315-1-13145886936@163.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210624032751.24315-1-13145886936@163.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: Russell King (Oracle) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 23, 2021 at 08:27:51PM -0700, 13145886936@163.com wrote: > From: gushengxian > > Remove unneeded variable: "errata". > > Signed-off-by: gushengxian NAK. > diff --git a/arch/arm/mach-omap2/dma.c b/arch/arm/mach-omap2/dma.c > index dfc9b21ff19b..ba4a48e3d264 100644 > --- a/arch/arm/mach-omap2/dma.c > +++ b/arch/arm/mach-omap2/dma.c > @@ -79,7 +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 +157,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; It is _not_ "unneeded" and you clearly have not compiled the resulting code from your patch. #define SET_DMA_ERRATA(id) (errata |= (id)) errata is used inside the SET_DMA_ERRATA() macro. Hence, building mach-omap2/dma.c would have failed. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!