Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp384107pxu; Fri, 11 Dec 2020 04:50:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJyugHnStucKv979FzBh/RrlqRVJQGqlwlL3ONBayGDckLcNqys8vL997OqrAkwHX799yLn7 X-Received: by 2002:a17:906:a415:: with SMTP id l21mr10531933ejz.2.1607691001763; Fri, 11 Dec 2020 04:50:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607691001; cv=none; d=google.com; s=arc-20160816; b=g5Y4xdzQL3EaWoOWrCyobcXFgpPSCGsDsMSotLs9FSRlxoIenjZyFGlIoVMj9Oez5I 1IhaiUsKUaJNpEVeu7lXJ3d9ScQpMbegi0t7IBGzBuxkZbU/RJP30HtOlpt8mEOQqPY/ 3hodYJRwRiKn3sWAFYrkb4WONx+XsJMy43fEwmTvocKk+o8Uiot+sOU3PqgDU2L4iYeh YZuCaITIGtBO/WQp4k3O/GsXQ0ix51d3Bpc5cm1MbbM6E8+/Z5vJNm+fMZKQ2M9dZO9K CWRRe3HESx16bvbeohqRfP7KBATfEx8GL6yYQ8yJeYWbXdHmgWbNdhCm43vt3Wz6EQzO 05Dw== 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=reaYzx4NBkRfhxhLrPpvEB0abL/EvZfhhONGrhFDsUQ=; b=g4E5zsUMRz3J41AKd9qK3O5JgjaexCIYCMEZrGJPwVvWBfUQpdBgo3cDPpVDHopuvp R8eUtenvvEJJBluzT/d5K7BtT8FYIlnZMg0sJmFMFp08VC9WJjzSy9BjewaNEiooahlh fUu4B3q3/VYGaYasZHYNzxJPg9tKlVqeghviyUE2WcvRm1UHzCJNUl06Gz2jFEjOzogX eXxFRbWdKU8DcusQCTzFTNG88U89OXwMGLVyRVUKfHRmZZXA71NL55Qn/FarCvijG+5e ULdRzgIudTaOyU2IcbO0eFayM2QVIYBfGEPmH6JZowLSslmBGYychD7aNJzzonds4umi tuWQ== 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 ga34si4344659ejc.171.2020.12.11.04.49.38; Fri, 11 Dec 2020 04:50:01 -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 S2405573AbgLKIyV (ORCPT + 99 others); Fri, 11 Dec 2020 03:54:21 -0500 Received: from smtp25.cstnet.cn ([159.226.251.25]:48864 "EHLO cstnet.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2403991AbgLKIxT (ORCPT ); Fri, 11 Dec 2020 03:53:19 -0500 Received: from localhost.localdomain (unknown [124.16.141.241]) by APP-05 (Coremail) with SMTP id zQCowAD39Hg+M9NfCkMDAA--.10772S2; Fri, 11 Dec 2020 16:52:15 +0800 (CST) From: Xu Wang To: pantelis.antoniou@gmail.com, davem@davemloft.net, kuba@kernel.org, linuxppc-dev@lists.ozlabs.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH] net: ethernet: fs-enet: remove casting dma_alloc_coherent Date: Fri, 11 Dec 2020 08:52:12 +0000 Message-Id: <20201211085212.85457-1-vulab@iscas.ac.cn> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: zQCowAD39Hg+M9NfCkMDAA--.10772S2 X-Coremail-Antispam: 1UD129KBjvdXoW7Xw15CFWrWFyUJry5KrWfZrb_yoWfZwc_ur srZFn7Ww4UJryFyw48KrW3Zr929FZ0va1rZF1vgayaqr9Fvrn5W34UZr1fXF13ur48uFZ8 Zwnxtry3A345KjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUb2xYjsxI4VWkCwAYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I 6I8E6xAIw20EY4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM2 8CjxkF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVW7JVWDJwA2z4x0Y4vE2Ix0 cI8IcVCY1x0267AKxVWxJVW8Jr1l84ACjcxK6I8E87Iv67AKxVWxJr0_GcWl84ACjcxK6I 8E87Iv6xkF7I0E14v26rxl6s0DM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI 64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r1q6rW5McIj6I8E87Iv67AKxVW8Jr0_Cr 1UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCY02Avz4vE14v_GFyl42xK 82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGw C20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r126r1DMIIYrxkI7VAKI48J MIIF0xvE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r1j6r4UMI IF0xvE42xK8VAvwI8IcIk0rVW3JVWrJr1lIxAIcVC2z280aVAFwI0_Jr0_Gr1lIxAIcVC2 z280aVCY1x0267AKxVWUJVW8JbIYCTnIWIevJa73UjIFyTuYvjxUxb4SUUUUU X-Originating-IP: [124.16.141.241] X-CM-SenderInfo: pyxotu46lvutnvoduhdfq/1tbiBgkHA10Te1Xx+wAAsh 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/net/ethernet/freescale/fs_enet/mac-fec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/freescale/fs_enet/mac-fec.c b/drivers/net/ethernet/freescale/fs_enet/mac-fec.c index 99fe2c210d0f..3ae345676e50 100644 --- a/drivers/net/ethernet/freescale/fs_enet/mac-fec.c +++ b/drivers/net/ethernet/freescale/fs_enet/mac-fec.c @@ -131,7 +131,7 @@ static int allocate_bd(struct net_device *dev) struct fs_enet_private *fep = netdev_priv(dev); const struct fs_platform_info *fpi = fep->fpi; - fep->ring_base = (void __force __iomem *)dma_alloc_coherent(fep->dev, + fep->ring_base = dma_alloc_coherent(fep->dev, (fpi->tx_ring + fpi->rx_ring) * sizeof(cbd_t), &fep->ring_mem_addr, GFP_KERNEL); -- 2.17.1