ipmi_ekanalyzer_fru_file2structure would return ERROR_STATUS even if it finished sucessfully.
Signed-off-by: Dan Gora <d...@adax.com> --- ipmitool/lib/ipmi_ekanalyzer.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ipmitool/lib/ipmi_ekanalyzer.c b/ipmitool/lib/ipmi_ekanalyzer.c index 3218413..6529dd8 100644 --- a/ipmitool/lib/ipmi_ekanalyzer.c +++ b/ipmitool/lib/ipmi_ekanalyzer.c @@ -3939,7 +3939,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; @@ -3958,7 +3957,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; @@ -4001,7 +4000,7 @@ ipmi_ekanalyzer_fru_file2structure( char * filename, break; record_count++; } - return return_status; + return OK_STATUS; } -- 1.7.7 ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar _______________________________________________ Ipmitool-devel mailing list Ipmitool-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ipmitool-devel