[PATCH 14/23] staging: rtl8723bs: Add missing braces in else statement.
From: Quytelda Kahja
Date: Tue Mar 27 2018 - 04:47:24 EST
The style rule to leave out braces in single line conditional statements
doesn't apply when one branch is multiple lines.
Signed-off-by: Quytelda Kahja <quytelda@xxxxxxxxxxx>
---
drivers/staging/rtl8723bs/hal/rtl8723bs_recv.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/staging/rtl8723bs/hal/rtl8723bs_recv.c b/drivers/staging/rtl8723bs/hal/rtl8723bs_recv.c
index 9c2d6dd0130f..4ba315f1daaf 100644
--- a/drivers/staging/rtl8723bs/hal/rtl8723bs_recv.c
+++ b/drivers/staging/rtl8723bs/hal/rtl8723bs_recv.c
@@ -75,8 +75,9 @@ static void update_recvframe_attrib(struct adapter *padapter,
pattrib->mdata = (u8)prxreport->md;
pattrib->data_rate = (u8)prxreport->rx_rate;
- } else
+ } else {
pattrib->pkt_len = (u16)prxreport->pktlen;
+ }
}
/*
--
2.16.3