Gedare Bloom started a new discussion on cpukit/dev/can/dcan/dcan.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1341#note_154031 > + * > + * @param chip Pointer to CAN chip structure. > + * @param ifno DCAN interface register set number. > + * > + * @return 0 on success, negated ETIMEDOUT otherwise. > + */ > +static int dcan_wait_if_not_busy( > + struct rtems_can_chip *chip, > + unsigned int ifno > +) > +{ > + struct dcan_internal *internal = chip->internal; > + int i = 1000; > + while ( i > 0 ) { > + if ( > + ( dcan_read_reg( internal, DCAN_IFCMD( ifno ) ) & you can get rid of the extra outside `( )`. -- View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1341#note_154031 You're receiving this email because of your account on gitlab.rtems.org. Unsubscribe from this thread: https://gitlab.rtems.org/-/sent_notifications/4-5xmd7kcn1vtrticxng1vpsut9-1d/unsubscribe | Manage all notifications: https://gitlab.rtems.org/-/profile/notifications | Help: https://gitlab.rtems.org/help
_______________________________________________ bugs mailing list [email protected] http://lists.rtems.org/mailman/listinfo/bugs
