staging: gdm72xx: Condense two statements into one to improve code readability.
PATCH 1/1 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 <[email protected]>
--- drivers/staging/gdm72xx/gdm_qos.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/gdm72xx/gdm_qos.c +1 -2
@@ -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)
Signature · 1 line
1.9.1