diff options
| author | Tobin C. Harding <me@tobin.cc> | 2018-04-10 19:33:24 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-04-11 13:28:36 -0400 |
| commit | c2066ca350b32f1d3d69743c59099c6f91f7a559 (patch) | |
| tree | c4ea7d747595922b09a92abd69f036860c90d83d /scripts | |
| parent | 2a9f9d851c602b6ef0d0a52fb1996772edf218cb (diff) | |
checkpatch: remove unused variable declarations
Variables are declared and not used, we should remove them.
Link: http://lkml.kernel.org/r/1519700648-23108-3-git-send-email-me@tobin.cc
Signed-off-by: Tobin C. Harding <me@tobin.cc>
Cc: 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 'scripts')
| -rwxr-xr-x | scripts/checkpatch.pl | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index a0808e46c6fe..ea6d0f3fc057 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl | |||
| @@ -6096,7 +6096,6 @@ sub process { | |||
| 6096 | } | 6096 | } |
| 6097 | if ($r1 !~ /^sizeof\b/ && $r2 =~ /^sizeof\s*\S/ && | 6097 | if ($r1 !~ /^sizeof\b/ && $r2 =~ /^sizeof\s*\S/ && |
| 6098 | !($r1 =~ /^$Constant$/ || $r1 =~ /^[A-Z_][A-Z0-9_]*$/)) { | 6098 | !($r1 =~ /^$Constant$/ || $r1 =~ /^[A-Z_][A-Z0-9_]*$/)) { |
| 6099 | my $ctx = ''; | ||
| 6100 | my $herectx = $here . "\n"; | 6099 | my $herectx = $here . "\n"; |
| 6101 | my $cnt = statement_rawlines($stat); | 6100 | my $cnt = statement_rawlines($stat); |
| 6102 | for (my $n = 0; $n < $cnt; $n++) { | 6101 | for (my $n = 0; $n < $cnt; $n++) { |
| @@ -6184,7 +6183,6 @@ sub process { | |||
| 6184 | if ($^V && $^V ge 5.10.0 && | 6183 | if ($^V && $^V ge 5.10.0 && |
| 6185 | defined $stat && | 6184 | defined $stat && |
| 6186 | $stat =~ /^\+[$;\s]*(?:case[$;\s]+\w+[$;\s]*:[$;\s]*|)*[$;\s]*\bdefault[$;\s]*:[$;\s]*;/g) { | 6185 | $stat =~ /^\+[$;\s]*(?:case[$;\s]+\w+[$;\s]*:[$;\s]*|)*[$;\s]*\bdefault[$;\s]*:[$;\s]*;/g) { |
| 6187 | my $ctx = ''; | ||
| 6188 | my $herectx = $here . "\n"; | 6186 | my $herectx = $here . "\n"; |
| 6189 | my $cnt = statement_rawlines($stat); | 6187 | my $cnt = statement_rawlines($stat); |
| 6190 | for (my $n = 0; $n < $cnt; $n++) { | 6188 | for (my $n = 0; $n < $cnt; $n++) { |
