aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/libxed.py
diff options
context:
space:
mode:
authorRebecca Mckeever <[email protected]>2022-03-31 12:16:04 -0500
committerGreg Kroah-Hartman <[email protected]>2022-04-04 07:33:49 +0200
commita76d5a6e3dc11e97aae17f3f029dcc3f22d50c5b (patch)
tree12ebc1cdf87201a35ccc03a772c65155666f6769 /tools/perf/scripts/python/libxed.py
parentacc24ef13ebdb893b2c348cbbaf508f96b1b40ca (diff)
staging: r8188eu: use sizeof(*pvar) for allocating structs
Use sizeof(*pvar) instead of sizeof(struct var) when allocating memory. This conforms to Linux kernel coding style, improves readability, and decreases the opportunity for bugs if the pointer variable type is changed. Issue found by checkpatch messages of the following format: CHECK: Prefer kzalloc(sizeof(*pvar)...) over kzalloc(sizeof(struct var)...) Signed-off-by: Rebecca Mckeever <[email protected]> Link: https://lore.kernel.org/r/YkXh1HBqaHwT38UC@bertie Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions