summaryrefslogtreecommitdiff
path: root/lib/hpm2.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/hpm2.c')
-rw-r--r--lib/hpm2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/hpm2.c b/lib/hpm2.c
index 6cb2f80..6420629 100644
--- a/lib/hpm2.c
+++ b/lib/hpm2.c
@@ -213,8 +213,8 @@ int hpm2_get_lan_channel_capabilities(struct ipmi_intf * intf,
/* send */
rsp = intf->sendrecv(intf, &req);
- if (rsp) {
- lprintf(LOG_NOTICE, "Error sending request");
+ if (!rsp) {
+ lprintf(LOG_NOTICE, "Error sending request.");
return -1;
}