Skip to content

Conversation

@moonlight83340
Copy link
Contributor

numaker_usbd_ep_fifo_copy_from_user() never reports errors and always returns 0.
The error check at the call site is therefore dead code.

Make the function void and drop the unused error handling.

numaker_usbd_ep_fifo_copy_from_user() never reports errors and
always returns 0.
The error check at the call site is therefore dead code.

Make the function void and drop the unused error handling.

Signed-off-by: Gaetan Perrot <[email protected]>
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 9, 2026

@moonlight83340 moonlight83340 marked this pull request as ready for review January 9, 2026 15:46
@zephyrbot zephyrbot added the area: USB Universal Serial Bus label Jan 9, 2026
Copy link
Contributor

@josuah josuah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

static void numaker_usbd_setup_fifo_copy_to_user() is void, so it makes sense for copy_from_user() to be void too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: USB Universal Serial Bus

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants