Skip to content

Commit

Permalink
checkpatch: fix long line messages about patch context
Browse files Browse the repository at this point in the history
Changes in ("checkpatch: categorize some long line length checks")
now erroneously reports long line defects in patch context.

Fix it.

Signed-off-by: Joe Perches <[email protected]>
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
JoePerches authored and torvalds committed Jul 17, 2015
1 parent f2abeef commit b4749e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/checkpatch.pl
Original file line number Diff line number Diff line change
Expand Up @@ -2599,7 +2599,7 @@ sub process {
# if LONG_LINE is ignored, the other 2 types are also ignored
#

if ($length > $max_line_length) {
if ($line =~ /^\+/ && $length > $max_line_length) {
my $msg_type = "LONG_LINE";

# Check the allowed long line types first
Expand Down

0 comments on commit b4749e9

Please sign in to comment.