mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-11 02:57:22 +00:00
__ipmi_sel_savelist_entries should return 0 instead of -1 if the SEL is
empty. An empty SEL shouldn't be an error condition when listing the SEL.
This commit is contained in:
parent
882d9ce81c
commit
070f36d1ae
@ -1281,7 +1281,7 @@ __ipmi_sel_savelist_entries(struct ipmi_intf * intf, int count, const char * sav
|
|||||||
|
|
||||||
if (rsp->data[1] == 0 && rsp->data[2] == 0) {
|
if (rsp->data[1] == 0 && rsp->data[2] == 0) {
|
||||||
lprintf(LOG_ERR, "SEL has no entries");
|
lprintf(LOG_ERR, "SEL has no entries");
|
||||||
return -1;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
memset(&req, 0, sizeof(req));
|
memset(&req, 0, sizeof(req));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user