ipmi: remove the need of an ending record in the SDR table
commit52fc01d9739d90086bf81987af5ed414ce89bbc4
authorCédric Le Goater <clg@fr.ibm.com>
Thu, 10 Mar 2016 14:04:00 +0000 (10 15:04 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 11 Mar 2016 14:59:13 +0000 (11 16:59 +0200)
treec03c2554e3e47526aaffb92711a13d362e5af66a
parent4fa9f08e968db4d40fe6faf3ebd1adfdfb816a16
ipmi: remove the need of an ending record in the SDR table

Currently, the code initializing the sdr table relies on an ending
record with a recid of 0xffff. This patch changes the loop to use the
sdr size as a breaking condition.

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