HV: vpic: cleanup uses of boolean variables

This patch drops the duplicated definitions to ''true'' and ''false'' and
initializes boolean variables with boolean values instead of integers.

Signed-off-by: Junjie Mao <junjie.mao@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Junjie Mao 2018-06-28 20:00:17 +08:00 committed by lijinxia
parent be90e42cfa
commit 1b97c6ea92
1 changed files with 2 additions and 5 deletions

View File

@ -37,9 +37,6 @@
#define vm_pic(vm) (vm->vpic)
#define true ((_Bool) 1)
#define false ((_Bool) 0)
#define ACRN_DBG_PIC 6
enum irqstate {
@ -259,7 +256,7 @@ static int vpic_icw1(struct vpic *vpic, struct pic *pic, uint8_t val)
pic->mask = 0;
pic->lowprio = 7;
pic->rd_cmd_reg = 0U;
pic->poll = 0;
pic->poll = false;
pic->smm = 0;
if ((val & ICW1_SNGL) != 0) {
@ -680,7 +677,7 @@ static int vpic_read(struct vpic *vpic, struct pic *pic,
VPIC_LOCK(vpic);
if (pic->poll) {
pic->poll = 0;
pic->poll = false;
pin = vpic_get_highest_irrpin(pic);
if (pin >= 0) {
vpic_pin_accepted(pic, pin);