ipmi: replace *_MAXCMD defines
commit62a4931d1e719059a8462dc0adad812524796fd4
authorCédric Le Goater <clg@fr.ibm.com>
Mon, 25 Jan 2016 14:07:28 +0000 (25 15:07 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Sat, 6 Feb 2016 18:44:08 +0000 (6 20:44 +0200)
tree40a4e2d3fac92b9b993e9e6015335d317083113e
parentd13ada5d8f5064615db3a6bf5ef457cb159e3dff
ipmi: replace *_MAXCMD defines

ARRAY_SIZE() is simple to use and removes the need to pre-define
the size of the command arrays.

Signed-off-by: Cédric Le Goater <clg@fr.ibm.com>
Reviewed-by: Greg Kurz <gkurz@linux.vnet.ibm.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/ipmi/ipmi_bmc_sim.c