]> www.infradead.org Git - users/jedix/linux-maple.git/commit
staging: rtl8723bs: simplify if-else block by removing unnecessary braces
authorAbraham Samuel Adekunle <abrahamadekunle50@gmail.com>
Tue, 25 Mar 2025 13:11:04 +0000 (14:11 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Apr 2025 05:38:08 +0000 (06:38 +0100)
commit7fc3a367b2f51004e4c0bd7b215502b7be6a042b
tree236c97b5e33f8559df008a7d69fc1c6ff830cbdd
parent5771897aed7b24ff8c2acc5f38d1337024a7e82b
staging: rtl8723bs: simplify if-else block by removing unnecessary braces

The if-else block contained braces around single statements, which are
unnecessary according to the Linux kernel coding style.

Remove the redundant braces to improve code readability and maintain
consistency with the rest of the codebase.

Reported by checkpatch:

WARNING: braces {} are not necessary for any arm of this statement

Signed-off-by: Abraham Samuel Adekunle <abrahamadekunle50@gmail.com>
Reviewed-by: Julia Lawall <julia.lawall@inria.fr>
Link: https://lore.kernel.org/r/Z+KraOo2DfmH5zMX@HP-650
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_ieee80211.c