aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c
diff options
context:
space:
mode:
authorMamta Shukla <mamtashukla555@gmail.com>2018-10-13 12:26:06 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-10-19 21:10:45 +0200
commit95f7ed6b7d29052c30cfed47b838f39bf432a910 (patch)
tree17d4477027a54c48f25e4059de4e2740818b596c /drivers/gpu/drm/amd/amdgpu/mxgpu_ai.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 <mamtashukla555@gmail.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c')
0 files changed, 0 insertions, 0 deletions