Skip to content

Commit

Permalink
mtd: rawnand: brcmnand: Fix NULL pointer assignment
Browse files Browse the repository at this point in the history
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: c1ac2dc ("mtd: rawnand: brcmnand: When oops in progress use pio and interrupt polling")
Signed-off-by: Florian Fainelli <[email protected]>
Signed-off-by: Miquel Raynal <[email protected]>
  • Loading branch information
ffainelli authored and miquelraynal committed Oct 29, 2019
1 parent f34a507 commit 0e04b2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/nand/raw/brcmnand/brcmnand.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 0e04b2f

Please sign in to comment.