Commit baad5ee1 authored by Michalis Pappas's avatar Michalis Pappas Committed by Greg Kroah-Hartman

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: default avatarMichalis Pappas <mpappas@fastmail.fm>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 917ab47f
...@@ -56,7 +56,7 @@ static void *alloc_qos_entry(void) ...@@ -56,7 +56,7 @@ static void *alloc_qos_entry(void)
} }
spin_unlock_irqrestore(&qos_free_list.lock, flags); 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; return entry;
} }
......
Markdown is supported
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