]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
staging: rtl8723bs: Add missing braces in else statement.
authorQuytelda Kahja <quytelda@tamalin.org>
Tue, 27 Mar 2018 08:41:06 +0000 (01:41 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Mar 2018 09:59:28 +0000 (11:59 +0200)
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@tamalin.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/rtl8723bs_recv.c

index 9c2d6dd0130fc0ea0ed47c934bd6b729aadc6c80..4ba315f1daaf856635cd97e018f394fb29f9934b 100644 (file)
@@ -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;
+       }
 }
 
 /*