From: Himangi Saraogi Date: Sun, 29 Jun 2014 07:16:04 +0000 (+0530) Subject: Coccinelle: Script to use ARRAY_SIZE instead of division of two sizeofs X-Git-Tag: omap-for-v3.17/fixes-against-rc2~60^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ab04ea0e32cf8cabcbc33cefac36e5f9258734e;p=pandora-kernel.git Coccinelle: Script to use ARRAY_SIZE instead of division of two sizeofs 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. Signed-off-by: Himangi Saraogi Acked-by: Julia Lawall Signed-off-by: Michal Marek --- Reading git-diff-tree failed