mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 10:37:22 +00:00
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
This commit is contained in:
parent
e1728327f6
commit
de1dee44bd
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user