diff options
author | Neelesh Gupta <neelegup@linux.vnet.ibm.com> | 2015-07-10 11:13:02 +0530 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-07-10 15:54:33 +1000 |
commit | c2c566a8390ea8154bfba68624dd1afa5a8079db (patch) | |
tree | ab978d1e9c9c96d39fa1de8d84ac306d15c3cadb /hw/bt.c | |
parent | 53c4974b1fc6add1489ddd58d0a938c84ade4c2a (diff) | |
download | skiboot-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); } |