mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-07-22 04:37:32 -04:00
staging: rtl8723bs: simplify _rtw_enqueue_cmd control flow
Replace the goto exit pattern with a direct return to simplify the control flow and improve readability. No functional change intended. Signed-off-by: Hungyu Lin <dennylin0707@gmail.com> Link: https://patch.msgid.link/20260513213719.12246-2-dennylin0707@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
07ff92ba0a
commit
95f2904973
@@ -253,7 +253,7 @@ int _rtw_enqueue_cmd(struct __queue *queue, struct cmd_obj *obj)
|
||||
unsigned long irqL;
|
||||
|
||||
if (!obj)
|
||||
goto exit;
|
||||
return _SUCCESS;
|
||||
|
||||
/* spin_lock_bh(&queue->lock); */
|
||||
spin_lock_irqsave(&queue->lock, irqL);
|
||||
@@ -263,7 +263,6 @@ int _rtw_enqueue_cmd(struct __queue *queue, struct cmd_obj *obj)
|
||||
/* spin_unlock_bh(&queue->lock); */
|
||||
spin_unlock_irqrestore(&queue->lock, irqL);
|
||||
|
||||
exit:
|
||||
return _SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user