Skip to content

samples: drivers: i2s: i2s_codec: Remove shadowed variable #92704

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

Conversation

moonlight83340
Copy link
Contributor

Avoids shadowing the outer 'ret' variable by reusing it instead of redeclaring it inside a conditional block.

This improves code clarity.

Avoids shadowing the outer 'ret' variable by reusing it instead of
redeclaring it inside a conditional block.

This improves code clarity.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
Copy link

sonarqubecloud bot commented Jul 4, 2025

@moonlight83340 moonlight83340 marked this pull request as ready for review July 4, 2025 17:51
@github-actions github-actions bot added area: Samples Samples size: XS A PR changing only a single line of code area: I2S labels Jul 4, 2025
@github-actions github-actions bot requested review from anangl, kartben and nashif July 4, 2025 17:52
@kartben kartben added the Trivial Changes that can be reviewed by anyone, i.e. doc changes, minor build system tweaks, etc. label Jul 4, 2025
@danieldegrasse danieldegrasse merged commit a16c504 into zephyrproject-rtos:main Jul 7, 2025
24 checks passed
@moonlight83340 moonlight83340 deleted the i2s_codec-shadowed-ret branch July 9, 2025 05:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: I2S area: Samples Samples size: XS A PR changing only a single line of code 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