diff options
author | Joe Perches | 2014-08-07 01:11:01 +0200 |
---|---|---|
committer | Linus Torvalds | 2014-08-07 03:01:28 +0200 |
commit | c00df19a5026f2cb08f1770dcc29226512f4d099 (patch) | |
tree | ffc146309723945fac34988eebd0d9a1f2284e53 /virt | |
parent | checkpatch: emit a warning on file add/move/delete (diff) | |
download | kernel-qcow2-linux-c00df19a5026f2cb08f1770dcc29226512f4d099.tar.gz kernel-qcow2-linux-c00df19a5026f2cb08f1770dcc29226512f4d099.tar.xz kernel-qcow2-linux-c00df19a5026f2cb08f1770dcc29226512f4d099.zip |
checkpatch: warn on break after goto or return with same tab indentation
Using break; after a goto or return is unnecessary so emit a warning
when the break is at the same indent level.
So this emits a warning on:
switch (foo) {
case 1:
goto err;
break;
}
but not on:
switch (foo) {
case 1:
if (bar())
goto err;
break;
}
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions