History

checkpatch: fix processing of MEMSET issues

Remove 's' modifier to avoid reporting the same warning several times.

Mateusz Kulikowski committed 11 years ago

Commit 9e20a851 parent b6117d11 file · +1 −1Browse files

Showing the changes to scripts/checkpatch.pl (1 of 1 file). Show all

Unified · Split

scripts/checkpatch.pl+1−1
@@ -5132,7 +5132,7 @@ sub process { · 5131 unmodified lines
51325132 # Check for misused memsets
51335133 if ($^V && $^V ge 5.10.0 &&
51345134 defined $stat &&
5135− $stat =~ /^\+(?:.*?)\bmemset\s*\(\s*$FuncArg\s*,\s*$FuncArg\s*\,\s*$FuncArg\s*\)/s) {
5135+ $stat =~ /^\+(?:.*?)\bmemset\s*\(\s*$FuncArg\s*,\s*$FuncArg\s*\,\s*$FuncArg\s*\)/) {
51365136
51375137 my $ms_addr = $2;
51385138 my $ms_val = $7;