summaryrefslogtreecommitdiffstats
path: root/discover/platform-powerpc.c
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sam.mj@au1.ibm.com>2015-11-09 14:45:58 +1100
committerSamuel Mendoza-Jonas <sam.mj@au1.ibm.com>2015-12-17 14:51:46 +1100
commiteea8cf830616dbbd9024b7d704cf0ccf2dac4767 (patch)
treea2eae11b0af3de7c71d74d7acac9952b485c6f3e /discover/platform-powerpc.c
parent0dae90626e54e46372c9feddc2f9ac82f046547d (diff)
downloadpetitboot-eea8cf830616dbbd9024b7d704cf0ccf2dac4767.zip
petitboot-eea8cf830616dbbd9024b7d704cf0ccf2dac4767.tar.gz
discover: Properly handle return values
Fixes three unchecked return values, and one missing initialisation. Fixes Coverity defects #30450, #30451, #30454, and #30483 Signed-off-by: Samuel Mendoza-Jonas <sam.mj@au1.ibm.com>
Diffstat (limited to 'discover/platform-powerpc.c')
-rw-r--r--discover/platform-powerpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/discover/platform-powerpc.c b/discover/platform-powerpc.c
index 2807934..ce4eb81 100644
--- a/discover/platform-powerpc.c
+++ b/discover/platform-powerpc.c
@@ -179,7 +179,7 @@ static int write_nvram(struct platform_powerpc *platform)
struct process *process;
struct param *param;
const char *argv[6];
- int rc;
+ int rc = 0;
argv[0] = "nvram";
argv[1] = "--update-config";
OpenPOWER on IntegriCloud