diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-06-11 17:18:43 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-06-11 17:18:43 +1000 |
commit | 1c2a21d2f9758a9ed3f9c4ec6f5b67a0f8ac50c3 (patch) | |
tree | bda68678cac68322aa74309013ff1e786f27b13d /platforms/rhesus/rhesus.c | |
parent | 874b4399c23f09985324826f867ac5d22062b2f5 (diff) | |
download | skiboot-1c2a21d2f9758a9ed3f9c4ec6f5b67a0f8ac50c3.zip skiboot-1c2a21d2f9758a9ed3f9c4ec6f5b67a0f8ac50c3.tar.gz skiboot-1c2a21d2f9758a9ed3f9c4ec6f5b67a0f8ac50c3.tar.bz2 |
Fix branch on uninitialized value in rhesus platform code
Found by llvm scan-build.
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'platforms/rhesus/rhesus.c')
-rw-r--r-- | platforms/rhesus/rhesus.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |