Skip to contentSkip to conversation

serial: 8250_bcm7271: use NULL to initialized a null pointer

PATCH In review Colin King 2 participants 2 messages Jul 19, 2021 – Jul 20, 2021

Subsystems (3)
lore
Share & tools
lore

Colin King

author
#0 lore raw

PATCH 1/1 serial: 8250_bcm7271: use NULL to initialized a null pointer

From: Colin Ian King <[email protected]>

Pointer membase is currently being in initialized with zero rather than NULL. Fix this.

---
 drivers/tty/serial/8250/8250_bcm7271.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/tty/serial/8250/8250_bcm7271.c +1 -1
index 725a450058f8..7f656fac503f 100644
@@ -941,7 +941,7 @@ static int brcmuart_probe(struct platform_device *pdev)
 	struct clk *baud_mux_clk;
 	struct uart_8250_port up;
 	struct resource *irq;
-	void __iomem *membase = 0;
+	void __iomem *membase = NULL;
 	resource_size_t mapbase = 0;
 	u32 clk_rate = 0;
 	int ret;
Signature · 1 line
2.31.1