From 86d6a61da75183d8eb9091187bd4f2383900f3b2 Mon Sep 17 00:00:00 2001 From: Philipp Reisner Date: Wed, 8 Sep 2021 20:42:30 +0200 Subject: [PATCH] coccicheck: Add missing test_and_clear_bit() One of the two test_and_set_bit() should have been test_and_clear_bit() from the beginning on. --- coccinelle/enum_bitops.cocci | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coccinelle/enum_bitops.cocci b/coccinelle/enum_bitops.cocci index 230ebde45..85a4af706 100644 --- a/coccinelle/enum_bitops.cocci +++ b/coccinelle/enum_bitops.cocci @@ -38,7 +38,7 @@ position p; | test_and_set_bit(F, &var->flags)@p | - test_and_set_bit(F, &var->flags)@p + test_and_clear_bit(F, &var->flags)@p ) @script:python depends on report@