Skip to content
Commit 95f7ed6b authored by Mamta Shukla's avatar Mamta Shukla Committed by Greg Kroah-Hartman
Browse files

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: default avatarMamta Shukla <mamtashukla555@gmail.com>
Reviewed-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8b8429b0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment