From de1dee44bd2fbf060f9ebbc46194eb40b3ce98e0 Mon Sep 17 00:00:00 2001 From: Zdenek Styblik Date: Mon, 22 Apr 2013 10:18:11 +0000 Subject: [PATCH] ID: 3608765 - ipmi_ekanalyzer_fru_file2structure would return error ipmi_ekanalyzer_fru_file2structure would return ERROR_STATUS even if it finished sucessfully. Commit for Dan Gora --- ipmitool/lib/ipmi_ekanalyzer.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ipmitool/lib/ipmi_ekanalyzer.c b/ipmitool/lib/ipmi_ekanalyzer.c index b772180..a82e4c8 100644 --- a/ipmitool/lib/ipmi_ekanalyzer.c +++ b/ipmitool/lib/ipmi_ekanalyzer.c @@ -3963,7 +3963,6 @@ ipmi_ekanalyzer_fru_file2structure(char * filename, struct ipmi_ek_multi_header ** list_record, struct ipmi_ek_multi_header ** list_last) { - int return_status = ERROR_STATUS; FILE * input_file; char data; unsigned char last_record = 0; @@ -3982,7 +3981,7 @@ ipmi_ekanalyzer_fru_file2structure(char * filename, lprintf(LOG_NOTICE, "There is no multi record in the file %s\n", filename); fclose(input_file); - return OK_STATUS; + return ERROR_STATUS; } /* the offset value is in multiple of 8 bytes. */ multi_offset = data * 8; @@ -4027,7 +4026,7 @@ ipmi_ekanalyzer_fru_file2structure(char * filename, } record_count++; } - return return_status; + return OK_STATUS; }