From bd612b2ee16814cd59d37eed2e16208eb1123c5d Mon Sep 17 00:00:00 2001 From: Christian kimocoder Date: Tue, 3 Oct 2017 08:13:17 +0200 Subject: [PATCH] Fix some conditional statements (missing braces) --- hal/rtl8812a/usb/rtl8812au_xmit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hal/rtl8812a/usb/rtl8812au_xmit.c b/hal/rtl8812a/usb/rtl8812au_xmit.c index 34b8e40..29b50ad 100755 --- a/hal/rtl8812a/usb/rtl8812au_xmit.c +++ b/hal/rtl8812a/usb/rtl8812au_xmit.c @@ -615,11 +615,11 @@ s32 rtl8812au_xmitframe_complete(_adapter *padapter, struct xmit_priv *pxmitpriv // check pkt amount in one bulk descCount = 0; bulkPtr = bulkSize; - if (pbuf < bulkPtr) + if (pbuf < bulkPtr) { descCount++; if (descCount == pHalData->UsbTxAggDescNum) goto agg_end; - else { + } else { descCount = 0; bulkPtr = ((pbuf / bulkSize) + 1) * bulkSize; // round to next bulkSize }