Commit bfcb2cc
checkpatch: catch all occurences of type and cast spacing errors per line
Fix up type and cast spacing checks such that all occurences on a line are
examined and reported. For example the line below has a valid cast and a
bad type, but currently we check the cast first which is good and stop:
u16* bar = (u16 *)baz;
We will also only report one of the errors in this example:
u16* bar = (u16*)bad;
Move to iterating across all casts and all types, reporting any failure.
[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Andy Whitcroft <apw@canonical.com>
Cc: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>1 parent 6b48db2 commit bfcb2cc
1 file changed
+7
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2209 | 2209 | | |
2210 | 2210 | | |
2211 | 2211 | | |
2212 | | - | |
2213 | | - | |
| 2212 | + | |
| 2213 | + | |
| 2214 | + | |
2214 | 2215 | | |
2215 | 2216 | | |
2216 | 2217 | | |
| |||
2225 | 2226 | | |
2226 | 2227 | | |
2227 | 2228 | | |
2228 | | - | |
2229 | | - | |
| 2229 | + | |
| 2230 | + | |
| 2231 | + | |
| 2232 | + | |
2230 | 2233 | | |
2231 | 2234 | | |
2232 | 2235 | | |
| |||
0 commit comments