]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
staging: rtl8723bs: conform if's braces to kernel style
authorDaniel Watson <ozzloy@gmail.com>
Wed, 29 Mar 2023 00:29:58 +0000 (17:29 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Mar 2023 09:22:51 +0000 (11:22 +0200)
Move the open brace of if-statements to the same line. This matches the
brace placement style described in the kernel's style guide.

Signed-off-by: Daniel Watson <ozzloy@gmail.com>
Link: https://lore.kernel.org/r/ZCOGhkLvLtBEo92Y@trent-reznor
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/include/rtw_recv.h

index 44f67103503aed9bebda88a83cb0aa60a7b4f1cb..fef2fd0e8c84fce04afecea2822b290555836147 100644 (file)
@@ -398,8 +398,7 @@ static inline u8 *recvframe_pull(union recv_frame *precvframe, signed int sz)
 
        precvframe->u.hdr.rx_data += sz;
 
-       if (precvframe->u.hdr.rx_data > precvframe->u.hdr.rx_tail)
-       {
+       if (precvframe->u.hdr.rx_data > precvframe->u.hdr.rx_tail) {
                precvframe->u.hdr.rx_data -= sz;
                return NULL;
        }
@@ -425,8 +424,7 @@ static inline u8 *recvframe_put(union recv_frame *precvframe, signed int sz)
 
        precvframe->u.hdr.rx_tail += sz;
 
-       if (precvframe->u.hdr.rx_tail > precvframe->u.hdr.rx_end)
-       {
+       if (precvframe->u.hdr.rx_tail > precvframe->u.hdr.rx_end) {
                precvframe->u.hdr.rx_tail = prev_rx_tail;
                return NULL;
        }
@@ -451,8 +449,7 @@ static inline u8 *recvframe_pull_tail(union recv_frame *precvframe, signed int s
 
        precvframe->u.hdr.rx_tail -= sz;
 
-       if (precvframe->u.hdr.rx_tail < precvframe->u.hdr.rx_data)
-       {
+       if (precvframe->u.hdr.rx_tail < precvframe->u.hdr.rx_data) {
                precvframe->u.hdr.rx_tail += sz;
                return NULL;
        }