summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xutil/lint/checkpatch.pl8
1 files changed, 7 insertions, 1 deletions
diff --git a/util/lint/checkpatch.pl b/util/lint/checkpatch.pl
index eb03bc7f30..646cb0f328 100755
--- a/util/lint/checkpatch.pl
+++ b/util/lint/checkpatch.pl
@@ -1495,7 +1495,13 @@ sub raw_line {
$cnt--;
}
- return $line;
+ # coreboot: This probably shouldn't happen, but it does.
+ # Return a defined value so we don't get an error.
+ if (defined $line) {
+ return $line;
+ } else {
+ return "";
+ }
}
sub cat_vet {