diff options
author | Mateusz Kulikowski <mateusz.kulikowski@gmail.com> | 2015-06-26 00:03:16 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-06-26 02:00:42 +0200 |
commit | 9e20a8535f3fdd88afe9fe17ae85c36bd37f4e71 (patch) | |
tree | 3d47ba8cd5b0aef4c2a7512e966561c5919e2a76 /scripts/checkpatch.pl | |
parent | checkpatch: suggest using ether_addr_equal*() (diff) | |
download | linux-9e20a8535f3fdd88afe9fe17ae85c36bd37f4e71.tar.xz linux-9e20a8535f3fdd88afe9fe17ae85c36bd37f4e71.zip |
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 '')
-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 { # Check for misused memsets if ($^V && $^V ge 5.10.0 && defined $stat && - $stat =~ /^\+(?:.*?)\bmemset\s*\(\s*$FuncArg\s*,\s*$FuncArg\s*\,\s*$FuncArg\s*\)/s) { + $stat =~ /^\+(?:.*?)\bmemset\s*\(\s*$FuncArg\s*,\s*$FuncArg\s*\,\s*$FuncArg\s*\)/) { my $ms_addr = $2; my $ms_val = $7; |