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

drivers: regulator: Remove compiler warning #119

Merged
merged 1 commit into from
Jul 1, 2024

Conversation

dsemenets
Copy link

Compiler generates warning because ret variable redefined in nested block. So this definition can de removed.

Copy link
Collaborator

@lorc lorc left a comment

Choose a reason for hiding this comment

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

Acked-by: Volodymyr Babchuk <[email protected]>

But I must say, that we have similar patch in the mainline: zephyrproject-rtos@69c6732

You can just backport it.

@dsemenets
Copy link
Author

Patch zephyrproject-rtos@69c6732 backported

@firscity
Copy link
Collaborator

It should contain information in commit message, that this patch is backport.

Backported from upstream patch 69c6732

Fix warning in gpio regulator:
    "declaration of 'ret' shadows a previous local".

Signed-off-by: Mykola Kvach <[email protected]>
@dsemenets
Copy link
Author

Fixed commit message

@firscity firscity merged commit 819bc00 into xen-troops:rpi5_dev Jul 1, 2024
7 checks passed
@dsemenets dsemenets deleted the warn_del branch July 1, 2024 18:29
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.

4 participants