From 1c2a21d2f9758a9ed3f9c4ec6f5b67a0f8ac50c3 Mon Sep 17 00:00:00 2001 From: Stewart Smith Date: Thu, 11 Jun 2015 17:18:43 +1000 Subject: Fix branch on uninitialized value in rhesus platform code Found by llvm scan-build. Signed-off-by: Stewart Smith --- platforms/rhesus/rhesus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'platforms/rhesus') diff --git a/platforms/rhesus/rhesus.c b/platforms/rhesus/rhesus.c index 855d0e4..7a43b1f 100644 --- a/platforms/rhesus/rhesus.c +++ b/platforms/rhesus/rhesus.c @@ -119,7 +119,7 @@ static int64_t rhesus_power_down(uint64_t request __unused) static int rhesus_pnor_init(void) { struct spi_flash_ctrl *pnor_ctrl; - struct blocklevel_device *bl; + struct blocklevel_device *bl = NULL; int rc; /* Open controller, flash and ffs */ -- cgit v1.1