mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 11:19:37 +00:00
staging: rtl8188eu: os_dep: Remove useless return variables
This patch removes unnecessary return variables and compresses the return logic. The coccinelle script that finds and fixes this issue is: @@ type T; identifier i,f; constant C; @@ - T i; ...when != i when strict ( return -C; | - i = + return f(...); - return i; ) Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
bd37c43c8d
commit
92098c1f0b
1 changed files with 1 additions and 4 deletions
|
@ -41,10 +41,7 @@ inline int RTW_STATUS_CODE(int error_code)
|
|||
|
||||
u8 *_rtw_malloc(u32 sz)
|
||||
{
|
||||
u8 *pbuf = NULL;
|
||||
|
||||
pbuf = kmalloc(sz, in_interrupt() ? GFP_ATOMIC : GFP_KERNEL);
|
||||
return pbuf;
|
||||
return kmalloc(sz, in_interrupt() ? GFP_ATOMIC : GFP_KERNEL);
|
||||
}
|
||||
|
||||
void *rtw_malloc2d(int h, int w, int size)
|
||||
|
|
Loading…
Reference in a new issue