qemu-e2k/hw/ipmi
Corey Minyard c9c4722914 ipmi: Fix macro issues
Macro parameters should almost always have () around them when used.
llvm reported an error on this.

Remove redundant parenthesis and put parenthesis around the entire
macros with assignments in case they are used in an expression.

The macros were doing ((v) & 1) for a binary input, but that only works
if v == 0 or if v & 1.  Changed to !!(v) so they work for all values.

Remove some unused macros.

Reported in https://bugs.launchpad.net/bugs/1651167

An audit of these changes found no semantic changes; this is just
cleanups for proper style and to avoid a compiler warning.

Signed-off-by: Corey Minyard <cminyard@mvista.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
2018-01-30 15:52:53 -06:00
..
ipmi_bmc_extern.c hw/ipmi: Replace fprintf(stderr, "*\n" with error_report() 2018-01-22 09:51:00 +01:00
ipmi_bmc_sim.c ipmi: Add the platform event message command 2018-01-30 15:52:53 -06:00
ipmi.c qom: enforce readonly nature of link's check callback 2017-07-14 12:04:42 +02:00
isa_ipmi_bt.c ipmi: Fix macro issues 2018-01-30 15:52:53 -06:00
isa_ipmi_kcs.c hw/ipmi: remove old i386 dependency 2017-12-18 17:07:02 +03:00
Makefile.objs ipmi: fix build config variable name for ipmi_bmc_extern.o 2016-11-01 19:21:09 +02:00