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:
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)
|
||||
|
|
Loading…
Reference in a new issue