RTEMS | GRLIB: Fix Coverity issues (!256)

Sebastian Huber (@sebhub) gitlab at rtems.org
Fri Oct 18 13:27:10 UTC 2024




Sebastian Huber started a new discussion on bsps/shared/grlib/pwm/grpwm.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/256#note_113276

 >  	unsigned int pctrl, wctrl=0;
 >  
 >  	pwm = priv->channels[channel];
 > -	if ( pwm->pwmregs->ctrl & GRPWM_PCTRL_EN_BIT ) {
 > +	if ( pwm->pwmregs->ctrl & (1 << GRPWM_PCTRL_EN_BIT) ) {

This should be simply `GRPWM_PCTRL_EN`.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/256#note_113276
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20241018/8dbb99af/attachment-0001.htm>


More information about the bugs mailing list