Change return value of ipmi_get_channel_medium() in 'lib/ipmi_channel.c'

Return 0 instead of (-1) since ipmi_get_channel_medium() is supposed to return
uint8_t.
This commit is contained in:
Zdenek Styblik 2012-02-08 13:40:51 +00:00
parent adbdafb535
commit 29d82210b4

View File

@ -762,7 +762,7 @@ ipmi_get_channel_medium(struct ipmi_intf * intf, uint8_t channel)
rsp = intf->sendrecv(intf, &req);
if (rsp == NULL) {
lprintf(LOG_ERR, "Get Channel Info command failed");
return -1;
return 0;
}
if (rsp->ccode > 0) {
if (rsp->ccode == 0xcc)