From patchwork Wed Jun 23 11:07:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 12339593 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E3555C4743C for ; Wed, 23 Jun 2021 11:09:27 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id AA0D061026 for ; Wed, 23 Jun 2021 11:09:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AA0D061026 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=xilinx.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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: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:In-Reply-To:References: List-Owner; bh=Q7AXllruFfpP8ExNn1mK53Y5LMd84JOJEiocw0Xz/Gc=; b=miYQeWfzmJoj0R gJ/vT1jfLLuNnoOgIAivU2tsq+jRkqmGDh/xocTxo9XwNItdR7sh9JD1GZo/2tVNYkI4UUMD8BDP4 4eHsZfBGjlgULX1+k3G5JbW9LcBtWxEACSykrU628A4It3hz2qWVyLIvsZisdLQugmxBB04jLxQ6g gZzMqCdXsu9hmWH9cYJxPLTHe6ykniEx7FybGNqXMsN69dIG6b4E9v6NZDVix9ZNo3UBWJvjqTeUr RzYPaWe+C8MZwoy113gsdaoqErsxWf+zMnn2CsUycKccogWrxqiNspVIr1kvQBDtuycgiHrMCwNS8 51NNZpZYxC6+Ebaks/JA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lw0jT-00AOZq-6N; Wed, 23 Jun 2021 11:07:47 +0000 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lw0jQ-00AOYc-EW for linux-arm-kernel@lists.infradead.org; Wed, 23 Jun 2021 11:07:45 +0000 Received: by mail-wm1-x32b.google.com with SMTP id o33-20020a05600c5121b02901e360c98c08so1976482wms.5 for ; Wed, 23 Jun 2021 04:07:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Y3XSjAUgIycOsJaRGQxufljkRRuVDo+N2vgMRUqZcmE=; b=Oo9my/B/3iFQsW7qS44zdQpsS7K4uAcB+Yv8Tf9MP+bVEF20P/gELD9ckgd/6BSva5 HBfOWZHPTQIRbAkryQy4dJ3wAfuj5XDTT/b5SugRd2866VuAz89AIkMhrh/4NUEnhiU1 Ng6Far7MXTa5RLmfIXk+MLDwHg8zRY/sGpOwq3sHep2ii8resl7nWMcf1fSXXrZfCiC1 8gI+aib24vowbmh3By/8RxfqhZ9AaTyffJYGdtgNkEG0hzT0T/QwZpj/ppSdGwAKtMUF 7ytJh2YLcSuIWr6oe3sPWWs/i2JgC+UKs5fLtiXc1961gsFt4B9PoLIIEBz0Pc7FutDQ 1F6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=Y3XSjAUgIycOsJaRGQxufljkRRuVDo+N2vgMRUqZcmE=; b=ENt73/o8EqaxYgyAtdLhK6cGGrgQ0ibw4ptkpqcinKQfDj003S7Zs0D7YY94YxFWNi Oy9HTcx5S2rgxZmHMaSp4QXAPO5XHhFf7CZVnmtABq62ZGSTgMeNppqHIhu3I/LNU3b3 uRHERo9nbPy7RVgIEx9wRBl163gs3uG/cYhAQjs6aQ6TzYyX8ZkaO4CFW0mAOtf7gL7E fOGqPxSNRks/7ZkQP1D26/2NN99l9MigXkGT03SE06LIbbntXl/Iapy3mCv4KBwWvPYB nHpbZwzh7F3z2NTVjL0VG8CLSix4rJVWrjRd22HtJzfLNHkN1VN/NcP6ovDDwQFGmeB4 ZIXg== X-Gm-Message-State: AOAM533NYLBbKBUFVo3FxYcAHKZfNMdX5SW2dbEGD+fnC3z5SSVZNROh SJXal+RsxU3L1UB9vwXD4LrDKg== X-Google-Smtp-Source: ABdhPJwfHKLqQcbSufJeAPQZzKJKDt4BAEHiNDkqYgH8qODWgBBV2zqXwRUSgYbDVnObyxRuJm4yKg== X-Received: by 2002:a1c:f215:: with SMTP id s21mr10248788wmc.179.1624446460184; Wed, 23 Jun 2021 04:07:40 -0700 (PDT) Received: from localhost ([2a02:768:2307:40d6::648]) by smtp.gmail.com with ESMTPSA id s5sm2701475wrn.38.2021.06.23.04.07.39 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 23 Jun 2021 04:07:39 -0700 (PDT) From: Michal Simek To: linux-kernel@vger.kernel.org, monstr@monstr.eu, michal.simek@xilinx.com, git@xilinx.com Cc: Hyun Kwon , Laurent Pinchart , Vinod Koul , dmaengine@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH] dmaengine: xilinx: dpdma: Fix spacing around addr[i-1] Date: Wed, 23 Jun 2021 13:07:38 +0200 Message-Id: X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210623_040744_526946_1674D625 X-CRM114-Status: GOOD ( 12.54 ) 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 Use proper spacing for array calculation. Issue is reported by checkpatch.pl --strict. Signed-off-by: Michal Simek Reviewed-by: Laurent Pinchart --- drivers/dma/xilinx/xilinx_dpdma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/xilinx/xilinx_dpdma.c b/drivers/dma/xilinx/xilinx_dpdma.c index 0b67083c95d0..b280a53e8570 100644 --- a/drivers/dma/xilinx/xilinx_dpdma.c +++ b/drivers/dma/xilinx/xilinx_dpdma.c @@ -531,7 +531,7 @@ static void xilinx_dpdma_sw_desc_set_dma_addrs(struct xilinx_dpdma_device *xdev, for (i = 1; i < num_src_addr; i++) { u32 *addr = &hw_desc->src_addr2; - addr[i-1] = lower_32_bits(dma_addr[i]); + addr[i - 1] = lower_32_bits(dma_addr[i]); if (xdev->ext_addr) { u32 *addr_ext = &hw_desc->addr_ext_23;