From 29d82210b4b8ac4aca62fe59d454e711dd318acd Mon Sep 17 00:00:00 2001 From: Zdenek Styblik Date: Wed, 8 Feb 2012 13:40:51 +0000 Subject: [PATCH] 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. --- ipmitool/lib/ipmi_channel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipmitool/lib/ipmi_channel.c b/ipmitool/lib/ipmi_channel.c index 40e92af..43db338 100644 --- a/ipmitool/lib/ipmi_channel.c +++ b/ipmitool/lib/ipmi_channel.c @@ -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)