diff options
author | Michalis Pappas <mpappas@fastmail.fm> | 2014-05-09 18:08:22 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-05-16 12:12:51 -0700 |
commit | baad5ee108bf8a4fdfdc6a381ffb5554dfdeaaa7 (patch) | |
tree | 61fb03a855067140d265aa90f25c122767786c7b /drivers/staging/gdm72xx | |
parent | 917ab47f5a25d636a88a06cdc0ca0432a59b6968 (diff) |
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>
Diffstat (limited to 'drivers/staging/gdm72xx')
-rw-r--r-- | drivers/staging/gdm72xx/gdm_qos.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |