提交 aca7f353 编写于 作者: D Dan Carpenter 提交者: Felipe Balbi

USB: musb: using 0 instead of NULL

Sparse complains (and rightly so):
drivers/usb/musb/cppi_dma.c:1458:33:
	warning: Using plain integer as NULL pointer
Signed-off-by: NDan Carpenter <error27@gmail.com>
Signed-off-by: NFelipe Balbi <balbi@ti.com>
上级 ec63bf6c
...@@ -1455,7 +1455,7 @@ static int cppi_channel_abort(struct dma_channel *channel) ...@@ -1455,7 +1455,7 @@ static int cppi_channel_abort(struct dma_channel *channel)
* compare mode by writing 1 to the tx_complete register. * compare mode by writing 1 to the tx_complete register.
*/ */
cppi_reset_tx(tx_ram, 1); cppi_reset_tx(tx_ram, 1);
cppi_ch->head = 0; cppi_ch->head = NULL;
musb_writel(&tx_ram->tx_complete, 0, 1); musb_writel(&tx_ram->tx_complete, 0, 1);
cppi_dump_tx(5, cppi_ch, " (done teardown)"); cppi_dump_tx(5, cppi_ch, " (done teardown)");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册