From patchwork Tue Feb 14 15:18:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 13140410 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 532EAC05027 for ; Tue, 14 Feb 2023 15:22:42 +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:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=CnQ7Bw82aTJiTuGzyF09Jg4vlL9q73rBd325VDCUa0Q=; b=L1PtdGWgDytENR 7VefdVsiwbzUhrWubbFpGG5p3NXQwZY5QegKuUtUyunTm/OBm2L2j7LOYB7XHLGqUFu5wgOmLCZIi FZxg9z+XObPvBiVEV9oGd7/BF1mgPm59FaNXBihYet7KF7wbR0+cw1w4mo2WJ0QOwy4TvOKtIzSOW NoQCTsoKmHQh0+AkQ81m3prR3VO7HEuw10v+HvBZoopBlWNUGC/QDjjcgU/NWv5eOwHaxq/w6o/+b nhgWo+Ys2JN7Elo6G60dgeqzFBbj0nLUghx7AWOGPfaB3FUfOax/H09IfOR3fotJ4j2WnD8TL+NKG zw1UQAcPnHM5NQm2u6lg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pRx7t-002VpR-5e; Tue, 14 Feb 2023 15:21:49 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pRx7A-002VVw-3D for linux-arm-kernel@lists.infradead.org; Tue, 14 Feb 2023 15:21:05 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1676388064; x=1707924064; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=PJhtvYwUVrba315GfdJC2HmxllCdahamNor2uBxDCIY=; b=NCUktWhS+w8J13MoG5m+n1P6WI45e3A4Nw2w46/QQCANthT39AfMCDcV PgBRM4jswAYUMm/Sc37cxy4kgaUYxBBkQdopM3Vfkr10arp+OXrvTE/k3 S0ySYAGfEIHs1JvYbJLcOWS1DDiPT8gthJDGUFS01F25IUSCNdWdyVdSk gUq1bdbLoFV/trwD6OjFao7psYmYCIgBPRyuOc7pcWexbQtRx9dI09I11 s/qaudM2jRJYZiEeJrECREkYqg7vZs/qdRy6Co8FrGeX1gLU8qD3dHobC +x6soy1lbO6RYVGFjIpy30iVPFTJq3eLAuNiSu8IrLR66BIjCrdnEktA2 g==; X-IronPort-AV: E=Sophos;i="5.97,296,1669100400"; d="scan'208";a="211939093" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 14 Feb 2023 08:21:01 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Tue, 14 Feb 2023 08:21:01 -0700 Received: from m18063-ThinkPad-T460p.mchp-main.com (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2507.16 via Frontend Transport; Tue, 14 Feb 2023 08:20:58 -0700 From: Claudiu Beznea To: , , , CC: , , , Claudiu Beznea Subject: [PATCH 7/7] dmaengine: at_xdmac: align declaration of ret with the rest of variables Date: Tue, 14 Feb 2023 17:18:27 +0200 Message-ID: <20230214151827.1050280-8-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230214151827.1050280-1-claudiu.beznea@microchip.com> References: <20230214151827.1050280-1-claudiu.beznea@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230214_072104_175489_CB545349 X-CRM114-Status: UNSURE ( 9.57 ) X-CRM114-Notice: Please train this message. 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 Align the declaration of ret in atmel_xdmac_resume() with the rest of variables. Do this by adding ret to the line with declaration for i variable. Signed-off-by: Claudiu Beznea --- drivers/dma/at_xdmac.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/dma/at_xdmac.c b/drivers/dma/at_xdmac.c index 7ff6ca01e0b5..7da6d9b6098e 100644 --- a/drivers/dma/at_xdmac.c +++ b/drivers/dma/at_xdmac.c @@ -2181,8 +2181,7 @@ static int __maybe_unused atmel_xdmac_resume(struct device *dev) struct at_xdmac_chan *atchan; struct dma_chan *chan, *_chan; struct platform_device *pdev = container_of(dev, struct platform_device, dev); - int i; - int ret; + int i, ret; ret = clk_prepare_enable(atxdmac->clk); if (ret)