mirror of
https://github.com/hardkernel/linux.git
synced 2026-04-05 12:43:09 +09:00
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 <mpappas@fastmail.fm> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
917ab47f5a
commit
baad5ee108
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user