-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Dangling 'else' in ecp.c #1776
Comments
@irwir thank you for reporting this! |
ARM Internal Ref: IOTSSL-2372 |
Commonly used styles do not add empty lines after
Could you give an example when deleting this |
I agree with you that this is not good style, And this
Current behavior is:
You are suggesting to change it to:
But I see your point, because if |
Yes. |
Remove `else` statement, as it is redundant. resolves Mbed-TLS#1776
https://github.com/ARMmbed/mbedtls/blob/8266acacc8d6e1c65fba9a048f56339d0827b2fe/library/ecp.c#L1895
Static analysers might find this line suspicious:
else
afterreturn
statement is redundantelse
is possibly a missing or forgotten statementThe suggestion is to delete the line.
The text was updated successfully, but these errors were encountered: