Skip to content

Commit 7fcddf7

Browse files
Michael Stefaniucmasahir0y
authored andcommitted
scripts: coccinelle: Fix description of badty.cocci
Summary was copy and pasted from array_size.cocci. Signed-off-by: Michael Stefaniuc <mstefani@mykolab.com> Acked-by: Julia Lawall <julia.lawall@lip6.fr> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
1 parent 1a49b2f commit 7fcddf7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/coccinelle/misc/badty.cocci

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/// Use ARRAY_SIZE instead of dividing sizeof array with sizeof an element
1+
/// Correct the size argument to alloc functions
22
///
33
//# This makes an effort to find cases where the argument to sizeof is wrong
44
//# in memory allocation functions by checking the type of the allocated memory

0 commit comments

Comments
 (0)