diff options
author | Jani Nikula <jani.nikula@intel.com> | 2016-05-19 20:32:48 +0300 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2016-05-30 13:38:50 +0300 |
commit | 5e64fa9c441ff273f39527f4014d3c3e724d321a (patch) | |
tree | fb7f74ce351cbf9d6281f9839caced173e3dc2fb /scripts/kernel-doc | |
parent | 1a695a905c18548062509178b98bc91e67510864 (diff) | |
download | linux-stable-5e64fa9c441ff273f39527f4014d3c3e724d321a.tar.gz linux-stable-5e64fa9c441ff273f39527f4014d3c3e724d321a.tar.bz2 linux-stable-5e64fa9c441ff273f39527f4014d3c3e724d321a.zip |
kernel-doc/rst: fix use of uninitialized value
I'm not quite sure why the errors below are happening, but this fixes
them.
Use of uninitialized value in string ne at ./scripts/kernel-doc line 1819, <IN> line 6494.
Use of uninitialized value $_[0] in join or string at ./scripts/kernel-doc line 1759, <IN> line 6494.
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'scripts/kernel-doc')
-rwxr-xr-x | scripts/kernel-doc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/kernel-doc b/scripts/kernel-doc index 2fc8fad5195e..babb374c043d 100755 --- a/scripts/kernel-doc +++ b/scripts/kernel-doc @@ -1803,7 +1803,8 @@ sub output_function_rst(%) { } else { print " ``$parameter``\n"; } - if ($args{'parameterdescs'}{$parameter_name} ne $undescribed) { + if (defined($args{'parameterdescs'}{$parameter_name}) && + $args{'parameterdescs'}{$parameter_name} ne $undescribed) { my $oldprefix = $lineprefix; $lineprefix = " "; output_highlight_rst($args{'parameterdescs'}{$parameter_name}); |