[PATCH V2] checkpatch: Add check for use of sizeof without parenthesis

2012-07-11 Thread Joe Perches
Kernel style uses parenthesis around sizeof. Signed-off-by: Joe Perches --- Add check that works for sizeof *foo as well as sizeof foo scripts/checkpatch.pl |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index

[PATCH V2] checkpatch: Add check for use of sizeof without parenthesis

2012-07-11 Thread Joe Perches
Kernel style uses parenthesis around sizeof. Signed-off-by: Joe Perches j...@perches.com --- Add check that works for sizeof *foo as well as sizeof foo scripts/checkpatch.pl |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/scripts/checkpatch.pl