linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] net: qlcnic: remove casting dma_alloc_coherent
@ 2020-12-11  8:59 Xu Wang
  2020-12-12 21:40 ` Jakub Kicinski
  0 siblings, 1 reply; 2+ messages in thread
From: Xu Wang @ 2020-12-11  8:59 UTC (permalink / raw)
  To: shshaikh, manishc, GR-Linux-NIC-Dev, davem, kuba, netdev; +Cc: linux-kernel

Remove casting the values returned by dma_alloc_coherent.

Signed-off-by: Xu Wang <vulab@iscas.ac.cn>
---
 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c
index 87f76bac2e46..c263c7769444 100644
--- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c
+++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c
@@ -569,7 +569,7 @@ int qlcnic_alloc_hw_resources(struct qlcnic_adapter *adapter)
 
 	for (ring = 0; ring < adapter->drv_tx_rings; ring++) {
 		tx_ring = &adapter->tx_ring[ring];
-		ptr = (__le32 *)dma_alloc_coherent(&pdev->dev, sizeof(u32),
+		ptr = dma_alloc_coherent(&pdev->dev, sizeof(u32),
 					 &tx_ring->hw_cons_phys_addr,
 					 GFP_KERNEL);
 		if (ptr == NULL) {
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] net: qlcnic: remove casting dma_alloc_coherent
  2020-12-11  8:59 [PATCH] net: qlcnic: remove casting dma_alloc_coherent Xu Wang
@ 2020-12-12 21:40 ` Jakub Kicinski
  0 siblings, 0 replies; 2+ messages in thread
From: Jakub Kicinski @ 2020-12-12 21:40 UTC (permalink / raw)
  To: Xu Wang; +Cc: shshaikh, manishc, GR-Linux-NIC-Dev, davem, netdev, linux-kernel

On Fri, 11 Dec 2020 08:59:20 +0000 Xu Wang wrote:
> Remove casting the values returned by dma_alloc_coherent.
> 
> Signed-off-by: Xu Wang <vulab@iscas.ac.cn>

This patch does not apply to net-next, please rebase against:

https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/

if you want it to be applied to the networking tree.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-12-12 21:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-11  8:59 [PATCH] net: qlcnic: remove casting dma_alloc_coherent Xu Wang
2020-12-12 21:40 ` Jakub Kicinski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).