aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorMamta Shukla <[email protected]>2018-10-13 12:26:06 +0530
committerGreg Kroah-Hartman <[email protected]>2018-10-19 21:10:45 +0200
commit95f7ed6b7d29052c30cfed47b838f39bf432a910 (patch)
tree17d4477027a54c48f25e4059de4e2740818b596c /tools/perf/util/trace-event-scripting.c
parent8b8429b00086d0d2a4eb6dd0ec96d4020d5fe8c8 (diff)
staging: rtl8188eu: core: Use sizeof(*p) instead of sizeof(struct P) for memory allocation
Use sizeof(*ptr) instead of sizeof(ptr_type) makes memory allocation easy in case the type of pointer changes. Fix all checkpatch reported issues for "CHECK: Prefer kzalloc(sizeof(*<p>)...) over kzalloc(sizeof(struct <P>)...)". Signed-off-by: Mamta Shukla <[email protected]> Reviewed-by: Daniel Vetter <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions