diff options
author | Elyes Haouas <ehaouas@noos.fr> | 2022-05-08 10:07:12 +0200 |
---|---|---|
committer | Martin L Roth <gaumless@tutanota.com> | 2022-05-16 02:28:02 +0000 |
commit | 0014bce46be97f28594248bbf9951bd0d0c4bf17 (patch) | |
tree | b43ce1e37e333cdee4c4e62ceb8a6579f61ce70a /util/lint/lint-stable-004-style-labels | |
parent | 026978bce588f9d26d443fbacbf8dcc90957e331 (diff) |
util/lint/checkpatch.pl: Fix "Invalid color mode" error message
Remove duplicated code:
"if ($color =~ /^[01]$/) {
$color = !$color;
} elsif ($color =~ /^always$/i) {
$color = 1;
} elsif ($color =~ /^never$/i) {
$color = 0;
} elsif ($color =~ /^auto$/i) {
$color = (-t STDOUT);
} else {
die "$P: Invalid color mode: $color\n";
}"
Change-Id: I5713c364edea806e58df26c3a37b4bba7603ed0a
Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/64172
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin L Roth <gaumless@tutanota.com>
Diffstat (limited to 'util/lint/lint-stable-004-style-labels')
0 files changed, 0 insertions, 0 deletions