Skip to content

Commit 6712d85

Browse files
JoePerchestorvalds
authored andcommitted
checkpatch: whitespace - add/remove blank lines
Add blank lines between a few tests, remove an extraneous one. Signed-off-by: Joe Perches <joe@perches.com> Cc: Andy Whitcroft <apw@canonical.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 2c92488 commit 6712d85

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

scripts/checkpatch.pl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3348,18 +3348,20 @@ sub process {
33483348
if ($line =~ /^.\s*sema_init.+,\W?0\W?\)/) {
33493349
WARN("CONSIDER_COMPLETION",
33503350
"consider using a completion\n" . $herecurr);
3351-
33523351
}
3352+
33533353
# recommend kstrto* over simple_strto* and strict_strto*
33543354
if ($line =~ /\b((simple|strict)_(strto(l|ll|ul|ull)))\s*\(/) {
33553355
WARN("CONSIDER_KSTRTO",
33563356
"$1 is obsolete, use k$3 instead\n" . $herecurr);
33573357
}
3358+
33583359
# check for __initcall(), use device_initcall() explicitly please
33593360
if ($line =~ /^.\s*__initcall\s*\(/) {
33603361
WARN("USE_DEVICE_INITCALL",
33613362
"please use device_initcall() instead of __initcall()\n" . $herecurr);
33623363
}
3364+
33633365
# check for various ops structs, ensure they are const.
33643366
my $struct_ops = qr{acpi_dock_ops|
33653367
address_space_operations|

0 commit comments

Comments
 (0)