mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-24 10:17:28 +00:00
HV: Logical conjunction needs brackets
The bracket is required when the level of precedence of the operators is less than 13. Add the bracket to logical conjunctions. The commit applys the rule to the files under Signed-off-by: Yang, Yu-chu <yu-chu.yang@intel.com> Reviewed-by: Junjie Mao <junjie.mao@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
@@ -98,11 +98,11 @@ static int fifo_numchars(struct fifo *fifo)
|
||||
*/
|
||||
static uint8_t vuart_intr_reason(struct vuart *vu)
|
||||
{
|
||||
if ((vu->lsr & LSR_OE) != 0 && (vu->ier & IER_ELSI) != 0) {
|
||||
if (((vu->lsr & LSR_OE) != 0) && ((vu->ier & IER_ELSI) != 0)) {
|
||||
return IIR_RLS;
|
||||
} else if (fifo_numchars(&vu->rxfifo) > 0 && (vu->ier & IER_ERBFI) != 0) {
|
||||
} else if ((fifo_numchars(&vu->rxfifo) > 0) && ((vu->ier & IER_ERBFI) != 0)) {
|
||||
return IIR_RXTOUT;
|
||||
} else if (vu->thre_int_pending && (vu->ier & IER_ETBEI) != 0) {
|
||||
} else if (vu->thre_int_pending && ((vu->ier & IER_ETBEI) != 0)) {
|
||||
return IIR_TXRDY;
|
||||
} else {
|
||||
return IIR_NOPEND;
|
||||
|
Reference in New Issue
Block a user