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

include: zephyr: comply to coding guidelines MISRA C:2012 Rule 14.4 #48108

Commits on Jul 21, 2022

  1. include: zephyr: comply to coding guidelines MISRA C:2012 Rule 14.4

    MISRA C:2012 Rule 14.4 (The controlling expression of an if statement
    and the controlling expression of an iteration-statement shall have
    essentially Boolean type.)
    
    Use comparisons with NULL instead of implicitly testing pointers.
    Use `do { ... } while (false)' instead of `do { ... } while (0)'.
    Use comparisons with zero instead of implicitly testing integers.
    
    The commit is a subset of the original auditable-branch commit:
    5d02614
    
    Signed-off-by: Simon Hein <[email protected]>
    simhein committed Jul 21, 2022
    Configuration menu
    Copy the full SHA
    257bbf1 View commit details
    Browse the repository at this point in the history