aboutsummaryrefslogtreecommitdiff
path: root/hw/bt.c
diff options
context:
space:
mode:
authorNeelesh Gupta <neelegup@linux.vnet.ibm.com>2015-07-10 11:13:02 +0530
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-07-10 15:54:33 +1000
commitc2c566a8390ea8154bfba68624dd1afa5a8079db (patch)
treeab978d1e9c9c96d39fa1de8d84ac306d15c3cadb /hw/bt.c
parent53c4974b1fc6add1489ddd58d0a938c84ade4c2a (diff)
downloadskiboot-c2c566a8390ea8154bfba68624dd1afa5a8079db.zip
skiboot-c2c566a8390ea8154bfba68624dd1afa5a8079db.tar.gz
skiboot-c2c566a8390ea8154bfba68624dd1afa5a8079db.tar.bz2
ipmi: Provide a macro for netfn return code
Signed-off-by: Neelesh Gupta <neelegup@linux.vnet.ibm.com> Cc: Alistair Popple <alistair@popple.id.au> Acked-by: Alistair Popple <alistair@popple.id.au> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw/bt.c')
-rw-r--r--hw/bt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/bt.c b/hw/bt.c
index 9f6244a..23fc68c 100644
--- a/hw/bt.c
+++ b/hw/bt.c
@@ -139,7 +139,8 @@ static void bt_msg_del(struct bt_msg *bt_msg)
list_del(&bt_msg->link);
bt.queue_len--;
unlock(&bt.lock);
- ipmi_cmd_done(bt_msg->ipmi_msg.cmd, bt_msg->ipmi_msg.netfn + (1 << 2),
+ ipmi_cmd_done(bt_msg->ipmi_msg.cmd,
+ IPMI_NETFN_RETURN_CODE(bt_msg->ipmi_msg.netfn),
IPMI_TIMEOUT_ERR, &bt_msg->ipmi_msg);
lock(&bt.lock);
}