]> git.karo-electronics.de Git - linux-beck.git/commitdiff
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 50d43ada0936378d539a75c68a7e1a23437504b6..519db48a14e1ac86f8347b241cf46498267aa3b1 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;
 }