diff options
author | Himangi Saraogi <[email protected]> | 2014-06-17 01:41:05 +0530 |
---|---|---|
committer | Paul Moore <[email protected]> | 2014-06-17 17:36:02 -0400 |
commit | 5c7001b84be55917a99c35ce96df7e67b3c40cea (patch) | |
tree | 39cba69c6ae4d9dd5d246a7510b61b3fa360d92b /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | aa65506f198c482b52ba6592c0023eca8b4bf8bd (diff) |
SELinux: use ARRAY_SIZE
ARRAY_SIZE is more concise to use when the size of an array is divided
by the size of its type or the size of its first element.
The Coccinelle semantic patch that makes this change is as follows:
// <smpl>
@@
type T;
T[] E;
@@
- (sizeof(E)/sizeof(E[...]))
+ ARRAY_SIZE(E)
// </smpl>
Signed-off-by: Himangi Saraogi <[email protected]>
Signed-off-by: Paul Moore <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions