pkarashchenko commented on code in PR #10874:
URL: https://github.com/apache/nuttx/pull/10874#discussion_r1350065859


##########
drivers/video/fb.c:
##########
@@ -1505,15 +1492,14 @@ int fb_register(int display, int plane)
 
   nxmutex_init(&fb->lock);
 
-  ret = register_driver(devname, &g_fb_fops, 0666, (FAR void *)fb);
+  ret = register_driver(devname, &g_fb_fops, 0666, fb);

Review Comment:
   Can we change `snprintf(devname, 16` to `snprintf(devname, sizeof(devname)` 
few lines above?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to