__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:
Jeremy Ellington 2006-06-20 19:20:25 +00:00
parent 882d9ce81c
commit 070f36d1ae

View File

@ -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) {
lprintf(LOG_ERR, "SEL has no entries");
return -1;
return 0;
}
memset(&req, 0, sizeof(req));