Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
checkpatch: fix the if and whitespace checks
The regex for the if/for/while bracket tests fails to distinguish non-space text. This means text such as do_something_if() would match incorrectly. Additionally, the ends-with-bracket test doesn't allow for the common coding paradigm: if (condition) { /* Text about conditional. */ } So fix that as well. Signed-off-by: Aaron Conole <[email protected]> Signed-off-by: Ben Pfaff <[email protected]>
- Loading branch information