diff options
| author | Mateusz Kulikowski <mateusz.kulikowski@gmail.com> | 2015-06-25 18:03:16 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-06-25 20:00:42 -0400 |
| commit | 9e20a8535f3fdd88afe9fe17ae85c36bd37f4e71 (patch) | |
| tree | 3d47ba8cd5b0aef4c2a7512e966561c5919e2a76 /scripts/checkpatch.pl | |
| parent | b6117d175be9972fc300f826e6f2bf9c589e0919 (diff) | |
checkpatch: fix processing of MEMSET issues
Remove 's' modifier to avoid reporting the same warning several times.
Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Acked-by: Joe Perches <joe@perches.com>
Cc: David Miller <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts/checkpatch.pl')
| -rwxr-xr-x | scripts/checkpatch.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index f04fe88d998d..954f4914c4af 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl | |||
| @@ -5132,7 +5132,7 @@ sub process { | |||
| 5132 | # Check for misused memsets | 5132 | # Check for misused memsets |
| 5133 | if ($^V && $^V ge 5.10.0 && | 5133 | if ($^V && $^V ge 5.10.0 && |
| 5134 | defined $stat && | 5134 | 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*\)/) { |
| 5136 | 5136 | ||
| 5137 | my $ms_addr = $2; | 5137 | my $ms_addr = $2; |
| 5138 | my $ms_val = $7; | 5138 | my $ms_val = $7; |
