Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usb: dwc2: hcd: fix build warning

commit db62b9a804b4 (usb: dwc2: host: don't
use dma_alloc_coherent with irqs disabled)
introduced a build warning by using NULL
as an integer. Fix that by just using 0 instead
of NULL.

Signed-off-by: Felipe Balbi <balbi@ti.com>

+1 -1
+1 -1
drivers/usb/dwc2/hcd.c
··· 749 749 chan->ep_is_in ? DMA_FROM_DEVICE : DMA_TO_DEVICE); 750 750 if (dma_mapping_error(hsotg->dev, qh->dw_align_buf_dma)) { 751 751 dev_err(hsotg->dev, "can't map align_buf\n"); 752 - chan->align_buf = (dma_addr_t)NULL; 752 + chan->align_buf = 0; 753 753 return -EINVAL; 754 754 } 755 755