mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-11 19:17:22 +00:00
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:
parent
adbdafb535
commit
29d82210b4
@ -762,7 +762,7 @@ ipmi_get_channel_medium(struct ipmi_intf * intf, uint8_t channel)
|
|||||||
rsp = intf->sendrecv(intf, &req);
|
rsp = intf->sendrecv(intf, &req);
|
||||||
if (rsp == NULL) {
|
if (rsp == NULL) {
|
||||||
lprintf(LOG_ERR, "Get Channel Info command failed");
|
lprintf(LOG_ERR, "Get Channel Info command failed");
|
||||||
return -1;
|
return 0;
|
||||||
}
|
}
|
||||||
if (rsp->ccode > 0) {
|
if (rsp->ccode > 0) {
|
||||||
if (rsp->ccode == 0xcc)
|
if (rsp->ccode == 0xcc)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user