mirror of
https://github.com/torvalds/linux.git
synced 2026-06-05 13:06:59 +02:00
staging: rtl8192e: remove the r8192E_dev.c's unnecessary brace
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>
This commit is contained in:
parent
324586a820
commit
331fd192b5
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user