Commit 0e04b2ff authored by Florian Fainelli's avatar Florian Fainelli Committed by Miquel Raynal
Browse files

mtd: rawnand: brcmnand: Fix NULL pointer assignment



Sparse complained about the following:

drivers/mtd/nand/raw/brcmnand/brcmnand.c:921:40: warning: Using plain integer as NULL pointer

fix this issue by assigning the pointer to NULL.

Fixes: c1ac2dc3 ("mtd: rawnand: brcmnand: When oops in progress use pio and interrupt polling")
Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
parent f34a5072
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -932,7 +932,7 @@ static inline void disable_ctrl_irqs(struct brcmnand_controller *ctrl)
		return;

	if (has_flash_dma(ctrl)) {
		ctrl->flash_dma_base = 0;
		ctrl->flash_dma_base = NULL;
		disable_irq(ctrl->dma_irq);
	}