Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

usb_control: Use usbd_request_return_codes enum better #1460

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tormodvolden
Copy link

For the second commit I am not sure how to make the whitespace best within 80 chars width, amend to your desire.

Since there are only the three values possible, this change is only a
boolean transformation and changes nothing in the execution. It makes
the code easier to read as it reflects the intention of the code better.

For the curious it also makes it easier to look up where the
USBD_REQ_NEXT_CALLBACK value comes to use.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
When reading the code isolated it is not obvious which enum values will
correspond to true or false so add proper comparisons instead.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant