From a5dd31afeb3c9efe12620b57c59ba60694e37c31 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Tue, 25 Jun 2019 10:54:42 +0200 Subject: [PATCH] contrib/checkpatch: allow empty lines within continuations This chunk from nm-device.c is, in fact, okay: |<-tab->nm_assert ( !new_config |<-tab-> || ( new_config |<-tab-> && ({ |<-tab-> int ip_ifindex = ... empty line -> | |<-tab-> ( ip_ifindex > 0 |<-tab-> && ip_ifindex == ... |<-tab-> }))); --- contrib/scripts/checkpatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/scripts/checkpatch.pl b/contrib/scripts/checkpatch.pl index 78ac3cb305..f50b37d413 100755 --- a/contrib/scripts/checkpatch.pl +++ b/contrib/scripts/checkpatch.pl @@ -206,7 +206,7 @@ if (defined $indent) { or (defined $tabs_before_spaces and defined $this_tabs_before_spaces and $this_tabs_before_spaces != $tabs_before_spaces); } -$indent = $this_indent; +$indent = $this_indent if $_ ne ''; # Further on we process stuff without comments. $_ = $line;