Kinsey Moore started a new discussion on bsps/shared/dev/serial/arm-pl011.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/47#note_111605 > +{ > + uint32_t cr = regs->uartcr; > + /* > + * Control: Configure flow control > + * NOTE: Flow control is untested > + */ > + cr &= ~(PL011_UARTCR_CTSEN | PL011_UARTCR_RTSEN); > + if ((term->c_cflag & CCTS_OFLOW) != 0) > + cr |= PL011_UARTCR_CTSEN; > + if ((term->c_cflag & CRTS_IFLOW) != 0) > + cr |= PL011_UARTCR_RTSEN; > + > + /* Control: Configure receiver */ > + if ((term->c_cflag & CREAD) != 0) > + cr |= PL011_UARTCR_RXE; > + There are many instances in new code like this where there is a single statement in an if block and the braces are omitted. These all need braces added to them. -- View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/47#note_111605 You're receiving this email because of your account on gitlab.rtems.org.
_______________________________________________ bugs mailing list bugs@rtems.org http://lists.rtems.org/mailman/listinfo/bugs