From: Michalis Pappas Date: Fri, 9 May 2014 10:08:22 +0000 (+0800) Subject: staging: gdm72xx: Modify a struct allocation to match coding standards X-Git-Tag: firefly_0821_release~176^2~3465^2~39^2~748 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=baad5ee108bf8a4fdfdc6a381ffb5554dfdeaaa7;p=firefly-linux-kernel-4.4.55.git staging: gdm72xx: Modify a struct allocation to match coding standards Fixes the following checkpatch.pl issue: CHECK: Prefer kmalloc(sizeof(*entry)...) over kmalloc(sizeof(struct qos_entry_s)...) Signed-off-by: Michalis Pappas Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/gdm72xx/gdm_qos.c b/drivers/staging/gdm72xx/gdm_qos.c index 50d43ada0936..519db48a14e1 100644 --- a/drivers/staging/gdm72xx/gdm_qos.c +++ b/drivers/staging/gdm72xx/gdm_qos.c @@ -56,7 +56,7 @@ static void *alloc_qos_entry(void) } spin_unlock_irqrestore(&qos_free_list.lock, flags); - entry = kmalloc(sizeof(struct qos_entry_s), GFP_ATOMIC); + entry = kmalloc(sizeof(*entry), GFP_ATOMIC); return entry; }