staging: gdm72xx: Modify a struct allocation to match coding standards
authorMichalis Pappas <mpappas@fastmail.fm>
Fri, 9 May 2014 10:08:22 +0000 (18:08 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 May 2014 19:12:51 +0000 (12:12 -0700)
Fixes the following checkpatch.pl issue:

CHECK: Prefer kmalloc(sizeof(*entry)...) over kmalloc(sizeof(struct qos_entry_s)...)

Signed-off-by: Michalis Pappas <mpappas@fastmail.fm>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gdm72xx/gdm_qos.c

index 50d43ad..519db48 100644 (file)
@@ -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;
 }