hv: treewide: fix 'Switch empty default has no comment'

This patch add some comments after the default and before the break
in the switch statement based on MISRA-C requirement.

Signed-off-by: Shiqing Gao <shiqing.gao@intel.com>
Reviewed-by: Junjie Mao <junjie.mao@intel.com>
This commit is contained in:
Shiqing Gao
2018-08-08 10:32:09 +08:00
committed by lijinxia
parent af7943c5e6
commit 4106fadeb3
8 changed files with 97 additions and 0 deletions

View File

@@ -525,6 +525,11 @@ static void ptdev_intr_handle_irq(struct vm *vm,
break;
}
default:
/*
* In this switch statement, intx->vpin_src shall either be
* PTDEV_VPIN_IOAPIC or PTDEV_VPIN_PIC.
* Gracefully return if prior case clauses have not been met.
*/
break;
}
}
@@ -598,6 +603,12 @@ void ptdev_intx_ack(struct vm *vm, uint8_t virt_pin,
case PTDEV_VPIN_PIC:
vpic_deassert_irq(vm, virt_pin);
default:
/*
* In this switch statement,
* entry->ptdev_intr_info.intx.vpin_src shall either be
* PTDEV_VPIN_IOAPIC or PTDEV_VPIN_PIC.
* Gracefully return if prior case clauses have not been met.
*/
break;
}