This script detects cases where ARRAY_SIZE can be used such as where there is a division of sizeof the array by the sizeof its first element or by any indexed element or the element type. It replaces the division of the two sizeofs by ARRAY_SIZE helper macro. Signed-off-by: Himanshu Jha <himanshujha199640@gmail.com> |
||
|---|---|---|
| .. | ||
| array_size.cocci | ||
| ignore_return.cocci | ||
| irq_lock.cocci | ||
| unsigned_shift.cocci | ||