Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp904318pxb; Wed, 3 Feb 2021 23:26:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJwY/DtH0RVajn8DzL39WFo7Ppw5A2mg+a5ZpfyLQpFomKeqPeMYbr6hvEjjhejW9vsca3US X-Received: by 2002:a50:bc15:: with SMTP id j21mr6690723edh.187.1612423571401; Wed, 03 Feb 2021 23:26:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612423571; cv=none; d=google.com; s=arc-20160816; b=PiYBprduz3ienxayRw/dN3Ro8kH0r7Hnv49CElPNkbE4CjKtYhdZ7+hDtmXTF2M9Rj rehyJJiexfXHOsMac4+a1f7okZSrVLQXF6kzPcSfVzMb9X6GZnT1QwsFf4qUZaE02eIt u56I93wfXGnhVlNydStGGlEsdVyZhRM9dSflsMB9Mt4f8D2d9iHssmsrMwd/Cmny8YrD w4YeLTL7/TNfFnFQPs6wFGzEUknijYZ7vkXfmIk8TJNHl95voTWFuNAE2WxxvMcs0B69 MIOu8Xw/Nu8dxMkQXDf8dTef2m1VKXlA/pM8I+7tZHYjZrbGQZxdCmvKLDF2iXnDbLdT uj4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=Rh8WeHZi0M6BwVUTixLrA51aWCiFUx0ZHuOO2zPEf3k=; b=eZVqtbe5LBiPij+VR8R1Y3u7y7/P2FwUmNW/xu+4D/gubUvPCX0mfafsZNIQGanoSI BPjblsTqfdUpqYsAeL/UzFyDU0B0hsnwxBA87XcJuuN9OEAsbNoqqDMhTZM4xadhXZkM 6+hE1gIV5gmjDkwUJcp7xBWa9WQhIvnRTXCyiMfnCQnIR0/0W+UDtPb7YuBqUDZo0eqV Tqs8H3ikvKxMzsSswkhJ1+uCq7wTZw4iOTHnN4nsmrc7u1WJYNnpYhVpQqpoHsl1/sWI sa7lGIXK/gyJTEunE11TU0nWOv9TqNh6Y+KBKC5QmHcMsDx1kq2TM3Tqd8MTgUgeqBDr gHYw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-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 m10si2723584edc.111.2021.02.03.23.25.36; Wed, 03 Feb 2021 23:26:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-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-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230270AbhBDHUr (ORCPT + 99 others); Thu, 4 Feb 2021 02:20:47 -0500 Received: from smtp21.cstnet.cn ([159.226.251.21]:43262 "EHLO cstnet.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S234165AbhBDHUh (ORCPT ); Thu, 4 Feb 2021 02:20:37 -0500 X-Greylist: delayed 481 seconds by postgrey-1.27 at vger.kernel.org; Thu, 04 Feb 2021 02:20:36 EST Received: from localhost.localdomain (unknown [124.16.141.242]) by APP-01 (Coremail) with SMTP id qwCowAD351gonhtgg8BBAQ--.50122S2; Thu, 04 Feb 2021 15:11:36 +0800 (CST) From: Xu Wang To: gcherian@marvell.com, herbert@gondor.apana.org.au, davem@davemloft.net Cc: linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] crypto: cavium: remove casting dma_alloc_coherent Date: Thu, 4 Feb 2021 07:11:33 +0000 Message-Id: <20210204071133.83921-1-vulab@iscas.ac.cn> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: qwCowAD351gonhtgg8BBAQ--.50122S2 X-Coremail-Antispam: 1UD129KBjvdXoW7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BgcCA10Te9wtQQAAsF Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Remove casting the values returned by dma_alloc_coherent. Signed-off-by: Xu Wang --- drivers/crypto/cavium/cpt/cptvf_main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/crypto/cavium/cpt/cptvf_main.c b/drivers/crypto/cavium/cpt/cptvf_main.c index f016448e43bb..112b12a32542 100644 --- a/drivers/crypto/cavium/cpt/cptvf_main.c +++ b/drivers/crypto/cavium/cpt/cptvf_main.c @@ -233,10 +233,10 @@ static int alloc_command_queues(struct cpt_vf *cptvf, c_size = (rem_q_size > qcsize_bytes) ? qcsize_bytes : rem_q_size; - curr->head = (u8 *)dma_alloc_coherent(&pdev->dev, - c_size + CPT_NEXT_CHUNK_PTR_SIZE, - &curr->dma_addr, - GFP_KERNEL); + curr->head = dma_alloc_coherent(&pdev->dev, + c_size + CPT_NEXT_CHUNK_PTR_SIZE, + &curr->dma_addr, + GFP_KERNEL); if (!curr->head) { dev_err(&pdev->dev, "Command Q (%d) chunk (%d) allocation failed\n", i, queue->nchunks); -- 2.17.1