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

Fix this piece of code (for loop) #35

Open
ganboing opened this issue Oct 5, 2022 · 0 comments
Open

Fix this piece of code (for loop) #35

ganboing opened this issue Oct 5, 2022 · 0 comments

Comments

@ganboing
Copy link

ganboing commented Oct 5, 2022

for(i=0; i<100; i++) ;

for(i=0; i<100; i++) ;

I have no idea what we are trying to accomplish here. Both for loop have empty body and will be optimized away.

andreiw added a commit to andreiw/uboot_jh7100 that referenced this issue Oct 27, 2022
I replaced the empty loop (which would always be optimized out) with a udelay(100).

Signed-off-by: Andrei Warkentin <[email protected]>
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

No branches or pull requests

1 participant