Skip to contentSkip to conversation

USB: musb: using 0 instead of NULL

PATCH Applied Dan Carpenter 2 participants 2 messages Mar 20, 2011 – Mar 22, 2011

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 2/4 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

drivers/usb/musb/cppi_dma.c +1 -1
index 6385eeb..0db0f5e 100644
@@ -1455,7 +1455,7 @@ static int cppi_channel_abort(struct dma_channel *channel)
 		 *    compare mode by writing 1 to the tx_complete register.
 		 */
 		cppi_reset_tx(tx_ram, 1);
-		cppi_ch->head = 0;
+		cppi_ch->head = NULL;
 		musb_writel(&tx_ram->tx_complete, 0, 1);
 		cppi_dump_tx(5, cppi_ch, " (done teardown)");
 
Applied
#1 lore raw
Quoted 5 lines · Dan Carpenter

Sparse complains (and rightly so):
drivers/usb/musb/cppi_dma.c:1458:33:
warning: Using plain integer as NULL pointer

applied, thanks

Signature · 1 line
balbi