Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c11230f4 authored by Joe Perches's avatar Joe Perches Committed by Linus Torvalds
Browse files

checkpatch: fix "Use of uninitialized value" warnings



checkpatch is currently confused about some complex macros and references
undefined variables $stat and $cond.

Make sure these are defined before using them.

Signed-off-by: default avatarJoe Perches <joe@perches.com>
Reported-by: default avatarGerhard Sittig <gsi@denx.de>
Acked-by: default avatarAndy Whitcroft <apw@canonical.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 76ae281f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3289,6 +3289,7 @@ sub process {
			}
		}
		if (!defined $suppress_whiletrailers{$linenr} &&
		    defined($stat) && defined($cond) &&
		    $line =~ /\b(?:if|while|for)\s*\(/ && $line !~ /^.\s*#/) {
			my ($s, $c) = ($stat, $cond);