]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
staging: rtl8192e: remove the r8192E_dev.c's unnecessary brace
authorChen shuo <1289151713@qq.com>
Wed, 8 May 2024 15:13:52 +0000 (23:13 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 4 Jun 2024 11:24:49 +0000 (13:24 +0200)
There is a unnecessary brace in r8192E_dev.c.Remove it to shorten
code and improve readability.

Signed-off-by: Chen shuo <1289151713@qq.com>
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/tencent_1992979C468AF087A1909000C6D0D5E61207@qq.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c

index 1901a319316b782cdc09ebf0301d5c5121e80e18..a0fc33f984e8795d449c756cab145d3a0ff34144 100644 (file)
@@ -1640,9 +1640,8 @@ bool rtl92e_get_rx_stats(struct net_device *dev, struct rtllib_rx_stats *stats,
        if (stats->Length < 24)
                stats->bHwError |= 1;
 
-       if (stats->bHwError) {
+       if (stats->bHwError)
                return false;
-       }
 
        stats->RxDrvInfoSize = pdesc->RxDrvInfoSize;
        stats->RxBufShift = (pdesc->Shift) & 0x03;