mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-11 00:42:56 -04:00
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
e20af8acf1
commit
1862eec4fe
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user