ipmi: add rsp_buffer_set_error() helper
commit6acb971a9412819ab2fe4def8739d3f1c0ffe9a1
authorCédric Le Goater <clg@fr.ibm.com>
Thu, 10 Mar 2016 14:03:57 +0000 (10 15:03 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 11 Mar 2016 14:59:13 +0000 (11 16:59 +0200)
treea125dc5534eb5ef33808def76ed9d1f6805f1449
parent7f996411ad3c41e064c1f14aaa48afda09242f5e
ipmi: add rsp_buffer_set_error() helper

The third byte in the response buffer of an IPMI command holds the
error code. In many IPMI command handlers, this byte is updated
directly. This patch adds a helper routine to clarify why this byte is
being used.

Signed-off-by: Cédric Le Goater <clg@fr.ibm.com>
Acked-by: Corey Minyard <cminyard@mvista.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/ipmi/ipmi_bmc_sim.c