checkpatch: don't print the next line if not defined
[linux-2.6-block.git] / scripts / checkpatch.pl
index c7cd0750b41efc43756b2ee8aac8f18ccd89dca6..8e22eb45ab2d86145244b6be02ba4b29db6f3b21 100755 (executable)
@@ -3162,7 +3162,7 @@ sub process {
                        if ($sign_off =~ /^reported(?:|-and-tested)-by:$/i) {
                                if (!defined $lines[$linenr]) {
                                        WARN("BAD_REPORTED_BY_LINK",
-                                            "Reported-by: should be immediately followed by Link: to the report\n" . $herecurr . $rawlines[$linenr] . "\n");
+                                            "Reported-by: should be immediately followed by Link: with a URL to the report\n" . $herecurr . "\n");
                                } elsif ($rawlines[$linenr] !~ m{^link:\s*https?://}i) {
                                        WARN("BAD_REPORTED_BY_LINK",
                                             "Reported-by: should be immediately followed by Link: with a URL to the report\n" . $herecurr . $rawlines[$linenr] . "\n");