]> Pileus Git - ~andy/linux/blobdiff - scripts/kernel-doc
scripts/kernel-doc: fix empty function description section
[~andy/linux] / scripts / kernel-doc
index 208ad3b0ca51baf955dc59a750f8d848c8465e01..c7865c362d28fdbe160c94bfdd54e40bf34f8dd5 100755 (executable)
@@ -2103,7 +2103,7 @@ sub process_file($) {
                $section = $newsection;
            } elsif (/$doc_end/) {
 
-               if ($contents ne "") {
+               if (($contents ne "") && ($contents ne "\n")) {
                    dump_section($file, $section, xml_escape($contents));
                    $section = $section_default;
                    $contents = "";