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>
This commit is contained in:
parent
2a9f9d851c
commit
c2066ca350
@ -6096,7 +6096,6 @@ sub process {
|
|||||||
}
|
}
|
||||||
if ($r1 !~ /^sizeof\b/ && $r2 =~ /^sizeof\s*\S/ &&
|
if ($r1 !~ /^sizeof\b/ && $r2 =~ /^sizeof\s*\S/ &&
|
||||||
!($r1 =~ /^$Constant$/ || $r1 =~ /^[A-Z_][A-Z0-9_]*$/)) {
|
!($r1 =~ /^$Constant$/ || $r1 =~ /^[A-Z_][A-Z0-9_]*$/)) {
|
||||||
my $ctx = '';
|
|
||||||
my $herectx = $here . "\n";
|
my $herectx = $here . "\n";
|
||||||
my $cnt = statement_rawlines($stat);
|
my $cnt = statement_rawlines($stat);
|
||||||
for (my $n = 0; $n < $cnt; $n++) {
|
for (my $n = 0; $n < $cnt; $n++) {
|
||||||
@ -6184,7 +6183,6 @@ sub process {
|
|||||||
if ($^V && $^V ge 5.10.0 &&
|
if ($^V && $^V ge 5.10.0 &&
|
||||||
defined $stat &&
|
defined $stat &&
|
||||||
$stat =~ /^\+[$;\s]*(?:case[$;\s]+\w+[$;\s]*:[$;\s]*|)*[$;\s]*\bdefault[$;\s]*:[$;\s]*;/g) {
|
$stat =~ /^\+[$;\s]*(?:case[$;\s]+\w+[$;\s]*:[$;\s]*|)*[$;\s]*\bdefault[$;\s]*:[$;\s]*;/g) {
|
||||||
my $ctx = '';
|
|
||||||
my $herectx = $here . "\n";
|
my $herectx = $here . "\n";
|
||||||
my $cnt = statement_rawlines($stat);
|
my $cnt = statement_rawlines($stat);
|
||||||
for (my $n = 0; $n < $cnt; $n++) {
|
for (my $n = 0; $n < $cnt; $n++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user