diff options
author | Martin Kaiser <martin@kaiser.cx> | 2022-05-15 17:53:59 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-05-19 17:42:23 +0200 |
commit | 4f44756e4fe03aa28894c243548955d2a3420942 (patch) | |
tree | 735e96744394f905bc041ffed65153f11dc9c662 /drivers/staging | |
parent | 619916037480b1f40c9a1a0456c2f960f9686128 (diff) | |
download | linux-4f44756e4fe03aa28894c243548955d2a3420942.tar.gz |
staging: r8188eu: simplify error handling in recv_func_prehandle
Simplify the error handling in recv_func_prehandle. There's no need to
goto exit, this would be the next statement anyway.
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20220515155401.352742-4-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/r8188eu/core/rtw_recv.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/staging/r8188eu/core/rtw_recv.c b/drivers/staging/r8188eu/core/rtw_recv.c index 4060c0457613..df518439aea2 100644 --- a/drivers/staging/r8188eu/core/rtw_recv.c +++ b/drivers/staging/r8188eu/core/rtw_recv.c @@ -1673,12 +1673,9 @@ static int recv_func_prehandle(struct adapter *padapter, struct recv_frame *rfra /* check the frame crtl field and decache */ ret = validate_recv_frame(padapter, rframe); - if (ret != _SUCCESS) { + if (ret != _SUCCESS) rtw_free_recvframe(rframe, pfree_recv_queue);/* free this recv_frame */ - goto exit; - } -exit: return ret; } |