8000 lowrisc: usb: change while to if by bradjc · Pull Request #3749 · tock/tock · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

lowrisc: usb: change while to if #3749

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

Merged
merged 1 commit into from
Nov 29, 2023
Merged

lowrisc: usb: change while to if #3749

merged 1 commit into from
Nov 29, 2023

Conversation

bradjc
Copy link
Contributor
@bradjc bradjc commented Nov 22, 2023

Pull Request Overview

This while loop can only ever execute once because there are break statements in all of the valid match arms.

This was found via a new clippy lint.

This patch makes the code match what is actually happening. I don't know if it should be a loop and the breaks are the issue, however.

Testing Strategy

No testing, just travis.

TODO or Help Wanted

Is this the right fix?

Documentation Updated

  • Updated the relevant files in /docs, or no updates are required.

Formatting

  • Ran make prepush.

This while loop can only ever execute once because there are break
statements in all of the valid match arms.

This was found via a new clippy lint.

This patch makes the code match what is actually happening. I don't know
if it should be a loop and the breaks are the issue, however.
@bradjc bradjc requested a review from alistair23 November 22, 2023 19:09
@github-actions github-actions bot added the WG-OpenTitan In the purview of the OpenTitan working group. label Nov 22, 2023
@alevy alevy added this pull request to the merge queue Nov 29, 2023
Merged via the queue into master with commit bc70c61 Nov 29, 2023
@alevy alevy deleted the lowrisc-usb-noloop branch November 29, 2023 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WG-OpenTitan In the purview of the OpenTitan working group.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0