From patchwork Fri Nov 20 08:30:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Wang X-Patchwork-Id: 11919651 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=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,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 3B15CC63777 for ; Fri, 20 Nov 2020 08:31:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D1E2422249 for ; Fri, 20 Nov 2020 08:31:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726701AbgKTIbK (ORCPT ); Fri, 20 Nov 2020 03:31:10 -0500 Received: from smtp25.cstnet.cn ([159.226.251.25]:37420 "EHLO cstnet.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725789AbgKTIbJ (ORCPT ); Fri, 20 Nov 2020 03:31:09 -0500 Received: from localhost.localdomain (unknown [124.16.141.242]) by APP-05 (Coremail) with SMTP id zQCowACXnZXBfrdfIC9bAQ--.19653S2; Fri, 20 Nov 2020 16:30:57 +0800 (CST) From: Xu Wang To: gregkh@linuxfoundation.org, lee.jones@linaro.org, gustavoars@kernel.org, chunfeng.yun@mediatek.com, linux-usb@vger.kernel.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH] usb: fotg210-hcd: remove casting dma_alloc_coherent Date: Fri, 20 Nov 2020 08:30:54 +0000 Message-Id: <20201120083054.8973-1-vulab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VW8JrUvcSsGvfC2KfnxnUUI43ZEXa7IU001v3UUUUU== X-Originating-IP: [124.16.141.242] X-CM-SenderInfo: pyxotu46lvutnvoduhdfq/1tbiCwYGA1z4jl7uAQAAsT Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Remove casting the values returned by dma_alloc_coherent. Signed-off-by: Xu Wang --- drivers/usb/host/fotg210-hcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/fotg210-hcd.c b/drivers/usb/host/fotg210-hcd.c index 1d94fcfac2c2..8961492a4c53 100644 --- a/drivers/usb/host/fotg210-hcd.c +++ b/drivers/usb/host/fotg210-hcd.c @@ -1951,7 +1951,7 @@ static int fotg210_mem_init(struct fotg210_hcd *fotg210, gfp_t flags) goto fail; /* Hardware periodic table */ - fotg210->periodic = (__le32 *) + fotg210->periodic = dma_alloc_coherent(fotg210_to_hcd(fotg210)->self.controller, fotg210->periodic_size * sizeof(__le32), &fotg210->periodic_dma, 0);