Skip to content

drivers: can: rcar: various code quality fixes #90694

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

  • Always initialize the return value variable to avoid returning garbage.
  • Declare the loop condition variable inside the loops to limit their scope.
  • Merge two nested if-statements into one.

Always initialize the return value variable to avoid returning garbage.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
…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 27, 2025
@github-actions github-actions bot added the platform: Renesas R-Car Renesas R-Car label May 27, 2025
Copy link

Copy link
Member

@aaillet aaillet left a comment

Choose a reason for hiding this comment

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

LGTM

@kartben kartben merged commit 40ec42e into zephyrproject-rtos:main May 28, 2025
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: CAN platform: Renesas R-Car Renesas R-Car 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.

4 participants