CHECKPATCH: Add warning for single else statement.
commitdfe7053a34353079503bf350f83cb8b6101a450d
authorDon Slutz <Don@CloudSwitch.com>
Sun, 2 Sep 2012 23:22:38 +0000 (2 19:22 -0400)
committerBlue Swirl <blauwirbel@gmail.com>
Wed, 5 Sep 2012 19:17:49 +0000 (5 19:17 +0000)
tree112a2c9e2c4094db5a7e94b3ae02b2a9cc16eb8f
parent69402a6944f506f51efee13c9db94bd1605eb478
CHECKPATCH: Add warning for single else statement.

For an example:

WARNING: braces {} are necessary even for single statement blocks
+    } else
+        return env->regs[R_EAX];

total: 0 errors, 1 warnings, 41 lines checked
Signed-off-by: Don Slutz <Don@CloudSwitch.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
scripts/checkpatch.pl