summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryant Boatright <bryant.boatright@proton.me>2025-04-04 16:35:11 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-04-15 17:28:11 +0300
commit7b4cd0853cd038a6b8c99985ce219dfcd00d7dc9 (patch)
treee6f922fba6ceb7a5504dbc104ca937a36682fe43
parentc994aa4db445d5af7c8c5c8bf82dea544eebfd1f (diff)
downloadlinux-7b4cd0853cd038a6b8c99985ce219dfcd00d7dc9.tar.xz
Staging: rtl8723bs: Fix unbalanced braces in conditional
Only one branch of conditional statement is a single statement thus both branches should use braces to adhere to the Linux coding style. Reported by checkpatch: CHECK: Unbalanced braces around else statement Signed-off-by: Bryant Boatright <bryant.boatright@proton.me> Link: https://lore.kernel.org/r/Z-_gC8XOVoiXsC8i@ubuntu-desk Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/rtl8723bs/core/rtw_cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/rtl8723bs/core/rtw_cmd.c b/drivers/staging/rtl8723bs/core/rtw_cmd.c
index 1c9e8b01d9d8..946511793c08 100644
--- a/drivers/staging/rtl8723bs/core/rtw_cmd.c
+++ b/drivers/staging/rtl8723bs/core/rtw_cmd.c
@@ -273,9 +273,9 @@ struct cmd_obj *_rtw_dequeue_cmd(struct __queue *queue)
/* spin_lock_bh(&(queue->lock)); */
spin_lock_irqsave(&queue->lock, irqL);
- if (list_empty(&queue->queue))
+ if (list_empty(&queue->queue)) {
obj = NULL;
- else {
+ } else {
obj = container_of(get_next(&queue->queue), struct cmd_obj, list);
list_del_init(&obj->list);
}