diff options
author | Navya Sri Nizamkari <navyasri.tech@gmail.com> | 2015-02-27 21:28:29 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-03-01 16:57:36 -0800 |
commit | 1862eec4fe45e2d33fb166af3f8e601fc2233d76 (patch) | |
tree | 94d9a2b98f7dde3addfcbdbe698234c837a1a6ba /drivers/staging/gdm72xx | |
parent | e20af8acf1b538496827cd1e3b7b29631443528a (diff) | |
download | op-kernel-dev-1862eec4fe45e2d33fb166af3f8e601fc2233d76.zip op-kernel-dev-1862eec4fe45e2d33fb166af3f8e601fc2233d76.tar.gz |
staging: gdm72xx: Condense two statements into one to improve code readability.
This patch removes a variable assignmnet to a value, used only
for returning that value. The following coccinelle script was
used to discover it:
@@
expression ret;
identifier f;
@@
-ret =
+return
f(...);
-return ret;
Signed-off-by: Navya Sri Nizamkari <navyasri.tech@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/gdm72xx')
-rw-r--r-- | drivers/staging/gdm72xx/gdm_qos.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/gdm72xx/gdm_qos.c b/drivers/staging/gdm72xx/gdm_qos.c index af24c57..96bf2bf 100644 --- a/drivers/staging/gdm72xx/gdm_qos.c +++ b/drivers/staging/gdm72xx/gdm_qos.c @@ -54,8 +54,7 @@ static void *alloc_qos_entry(void) } spin_unlock_irqrestore(&qos_free_list.lock, flags); - entry = kmalloc(sizeof(*entry), GFP_ATOMIC); - return entry; + return kmalloc(sizeof(*entry), GFP_ATOMIC); } static void free_qos_entry(void *entry) |