Skip to content

drivers: can: mcan: various code quality fixes #90595

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

Conversation

henrikbrixandersen
Copy link
Member

  • Declare the loop condition variable inside the loops to limit their scope.
  • Merge two nested if-statements into one.

…oops

Declare the loop condition variable inside the loops to limit their scope.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
Merge two nested if-statements into one.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
@henrikbrixandersen henrikbrixandersen added area: CAN Trivial Changes that can be reviewed by anyone, i.e. doc changes, minor build system tweaks, etc. labels May 26, 2025
Copy link

@henrikbrixandersen henrikbrixandersen marked this pull request as ready for review May 27, 2025 16:21
@kartben kartben merged commit 18aa6c8 into zephyrproject-rtos:main May 28, 2025
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: CAN Trivial Changes that can be reviewed by anyone, i.e. doc changes, minor build system tweaks, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants