]> git.proxmox.com Git - mirror_qemu.git/commit
ipmi: Fix macro issues
authorCorey Minyard <cminyard@mvista.com>
Thu, 30 Mar 2017 17:28:12 +0000 (12:28 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Sun, 2 Apr 2017 19:17:47 +0000 (21:17 +0200)
commitcb9a05a4f169347f85e345a2abe42c45e1d3157b
treee3763a88829155bb0f82b83010472170843e99c6
parentc7f15bc93661a36fec9fd0107654cf44d06c5992
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.

Remove some unused macros.

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

Signed-off-by: Corey Minyard <cminyard@mvista.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <1490894892-8055-1-git-send-email-minyard@acm.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/ipmi/isa_ipmi_bt.c