Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1519001pxb; Thu, 4 Feb 2021 15:29:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJzKmH/q5ezHzVmqDlRwfWrwydhWyV1qaCWUW4DmLkiAtpMv8yuc9vnqVK6slK/XXTV+dxj3 X-Received: by 2002:aa7:d64b:: with SMTP id v11mr908404edr.16.1612481384559; Thu, 04 Feb 2021 15:29:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612481384; cv=none; d=google.com; s=arc-20160816; b=gkqaJFrW5BxlHM00aDCwk4+62C4MCeu3uZbL2S+Oi/mjVaLo2eX3P0IYlaavTcNiGi c6YeiJDZ4fCV5WQIsnQMD+ILnMvrKmsxuRqXt72gPC+8KbTAAt6DyMsOaVbvY1jZTcLZ KKCwBzOpYaTt13Sai7w3yXWqZfYe/jESyrB+Ry/RfiNrft9f/xj0vdWTBG4zijhMK67T INwBTCuGKr6CRcKcbx8yMWYZsSPYZvbylkOsaoXjc+qpvQkWv0268JFk0XP0dNWrMuzA bx6HGST4/kDcP3S7Y6WPuI9CUDEPEkQZay6I+EAQps9JhHLPpW3S+NPzzynQeeRNfiI5 p8WQ== 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=cEALGPFG+b7Z8EY9GFgQUbRVS/VNjCIMLKrSxEGqHFA=; b=nr5f3tSHcWP4hGzPDQ1mFj1/VIngJlNUyNsSQ4WwIhT9jlLS+Cv9it6/wKDGv6lU7o xOWFkUSC+zElLvjjvo53ny+4tg76nj6Pes4M5pPBdKjAyQAIzyRaHJiJTXq58RZ6Trte OnXbl7s0i6ZVa/j6lcKKJekqix+lKq2WZPRHV+IU/VTntuYdXSkGZqT8bIVHWBzMPA9Z utWaMvPpW5o899EjtyS9Bxp5wkGd+loZv7WLVdpm4LCJESOm/++nB9EjMrTyOAi7YnyC aeCZAMK2AOHF1rGAqp9df21rQDaugUpPF26MI7eMoWxnjJLRt0194+Nib6GLyiCRKvx6 baNw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z2si4614701eju.570.2021.02.04.15.29.21; Thu, 04 Feb 2021 15:29:44 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233786AbhBDHSm (ORCPT + 99 others); Thu, 4 Feb 2021 02:18:42 -0500 Received: from smtp21.cstnet.cn ([159.226.251.21]:42028 "EHLO cstnet.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231791AbhBDHSj (ORCPT ); Thu, 4 Feb 2021 02:18:39 -0500 Received: from localhost.localdomain (unknown [124.16.141.242]) by APP-01 (Coremail) with SMTP id qwCowABnbpaVnxtgKuhBAQ--.48462S2; Thu, 04 Feb 2021 15:17:41 +0800 (CST) From: Xu Wang To: stern@rowland.harvard.edu, gregkh@linuxfoundation.org Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] usb: host: ehci: remove casting dma_alloc_coherent Date: Thu, 4 Feb 2021 07:17:38 +0000 Message-Id: <20210204071738.84222-1-vulab@iscas.ac.cn> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: qwCowABnbpaVnxtgKuhBAQ--.48462S2 X-Coremail-Antispam: 1UD129KBjvdXoW7Xw15CFWUWFW7uFy3Cr17KFg_yoWxuwc_Cr W5JrsF93srKF1qkryDJFy3ZFZ7tws5XF48Z3WvgryfKa4qqr4rXF93Zr1kJ3W3Cws5JrZ0 k3s8XrWSgw4xujkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUb2AYjsxI4VWkCwAYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I 6I8E6xAIw20EY4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM2 8CjxkF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVW5JVW7JwA2z4x0Y4vE2Ix0 cI8IcVCY1x0267AKxVWxJVW8Jr1l84ACjcxK6I8E87Iv67AKxVWxJr0_GcWl84ACjcxK6I 8E87Iv6xkF7I0E14v26F4UJVW0owAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40EFcxC 0VAKzVAqx4xG6I80ewAv7VC0I7IYx2IY67AKxVWUXVWUAwAv7VC2z280aVAFwI0_Gr0_Cr 1lOx8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcxkI7VAKI48JMxkIecxEwVAFwVW8CwCF04k2 0xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI 8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_JF0_Jw1lIxkGc2Ij64vIr41l IxAIcVC0I7IYx2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Gr0_Cr1lIx AIcVCF04k26cxKx2IYs7xG6rWUJVWrZr1UMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF0xvE x4A2jsIEc7CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x07j7pnQUUUUU= X-Originating-IP: [124.16.141.242] X-CM-SenderInfo: pyxotu46lvutnvoduhdfq/1tbiCggCA1z4jWK-QAAAs3 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove casting the values returned by dma_alloc_coherent. Signed-off-by: Xu Wang --- drivers/usb/host/ehci-mem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/ehci-mem.c b/drivers/usb/host/ehci-mem.c index 6361d81272bc..769329032257 100644 --- a/drivers/usb/host/ehci-mem.c +++ b/drivers/usb/host/ehci-mem.c @@ -185,7 +185,7 @@ static int ehci_mem_init (struct ehci_hcd *ehci, gfp_t flags) } /* Hardware periodic table */ - ehci->periodic = + ehci->periodic = dma_alloc_coherent(ehci_to_hcd(ehci)->self.sysdev, ehci->periodic_size * sizeof(__le32), &ehci->periodic_dma, flags); -- 2.17.1