diff options
author | Trent Piepho <xyzzy@speakeasy.org> | 2006-09-03 06:11:32 -0700 |
---|---|---|
committer | Trent Piepho <xyzzy@speakeasy.org> | 2006-09-03 06:11:32 -0700 |
commit | 20caf241a0abd9c3ba8e20cd3345c36c3853608a (patch) | |
tree | 300156a2e4c9d748e6b8269ae3b0505a2f82929c /v4l | |
parent | 2c18ae81f3896cdfad3471781d3c8aaaaa0bbe80 (diff) | |
download | mediapointer-dvb-s2-20caf241a0abd9c3ba8e20cd3345c36c3853608a.tar.gz mediapointer-dvb-s2-20caf241a0abd9c3ba8e20cd3345c36c3853608a.tar.bz2 |
Minor change to make_kconfig.pl Kconfig parsing code
From: Trent Piepho <xyzzy@speakeasy.org>
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 <xyzzy@speakeasy.org>
Diffstat (limited to 'v4l')
-rwxr-xr-x | v4l/scripts/make_kconfig.pl | 2 |
1 files changed, 2 insertions, 0 deletions
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'); |