RTEMS | cpukit/libblock: memory cleanup and name generation failure(nvdisk) (!906)

Prakhar Kumar (@prakhar) gitlab at rtems.org
Sat Jan 24 20:07:31 UTC 2026




Prakhar Kumar commented on a discussion on cpukit/libblock/src/nvdisk.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/906#note_139945

 >  
 >    return RTEMS_SUCCESSFUL;
 >  }
 > +
 > +static void rtems_nvdisk_cleanup_helper (rtems_nvdisk *nvd, bool *mutex_initialized)
 > +{
 > +  if(nvd == NULL)
 > +    return;
 > +  if((*mutex_initialized) == false)

yes you are right it is mentioned in the doc "Put braces on the same line as and one space after the conditional expression ends."

https://docs.rtems.org/docs/main/eng/coding-formatting.html

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/906#note_139945
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/20260124/58780730/attachment-0001.htm>


More information about the bugs mailing list