From 20caf241a0abd9c3ba8e20cd3345c36c3853608a Mon Sep 17 00:00:00 2001 From: Trent Piepho Date: Sun, 3 Sep 2006 06:11:32 -0700 Subject: Minor change to make_kconfig.pl Kconfig parsing code From: Trent Piepho Skip the parsing code that only make sense inside a Kconfig menu block when not in a menu block. Mostly to get rid of Perl warnings. Signed-off-by: Trent Piepho --- v4l/scripts/make_kconfig.pl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'v4l') diff --git a/v4l/scripts/make_kconfig.pl b/v4l/scripts/make_kconfig.pl index c1a60e5a9..10d1eabb1 100755 --- a/v4l/scripts/make_kconfig.pl +++ b/v4l/scripts/make_kconfig.pl @@ -316,6 +316,8 @@ sub open_kconfig($$) { } elsif (m|^\s*menu\s+"[^"]*"\s*$|) { $key = 'menu'; } + # Remaining Kconfig directives only makse sense inside Kconfig blocks + next unless(defined $key); # Don't process any directives in comment blocks (or menus) next if ($key eq 'comment' || $key eq 'menu'); -- cgit v1.2.3