build/patch/kernel/archive/sunxi-6.1/patches.megous/8723cs-Fix-indentation.patch

89 lines
2.3 KiB
Diff

From f538db9515a0caa2e0d3942023d1775abb561407 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ond=C5=99ej=20Jirman?= <megi@xff.cz>
Date: Sat, 8 May 2021 19:10:26 +0200
Subject: [PATCH 131/389] 8723cs: Fix indentation
It was confusing.
Signed-off-by: Ondrej Jirman <megi@xff.cz>
---
.../hal/rtl8703b/sdio/rtl8703bs_recv.c | 56 +++++++++----------
1 file changed, 28 insertions(+), 28 deletions(-)
diff --git a/drivers/staging/rtl8723cs/hal/rtl8703b/sdio/rtl8703bs_recv.c b/drivers/staging/rtl8723cs/hal/rtl8703b/sdio/rtl8703bs_recv.c
index 54ed0cfb1d1e..28f715679844 100644
--- a/drivers/staging/rtl8723cs/hal/rtl8703b/sdio/rtl8703bs_recv.c
+++ b/drivers/staging/rtl8723cs/hal/rtl8703b/sdio/rtl8703bs_recv.c
@@ -142,40 +142,40 @@ s32 rtl8703bs_recv_hdl(_adapter *padapter)
#ifdef CONFIG_RTW_NAPI
#ifdef CONFIG_RTW_NAPI_V2
- if (padapter->registrypriv.en_napi) {
- struct dvobj_priv *d;
- struct _ADAPTER *a;
- u8 i;
+ if (padapter->registrypriv.en_napi) {
+ struct dvobj_priv *d;
+ struct _ADAPTER *a;
+ u8 i;
+
+ d = adapter_to_dvobj(padapter);
+ for (i = 0; i < d->iface_nums; i++) {
+ a = d->padapters[i];
+ if (rtw_if_up(a) == _TRUE)
+ napi_schedule(&a->napi);
- d = adapter_to_dvobj(padapter);
- for (i = 0; i < d->iface_nums; i++) {
- a = d->padapters[i];
- if (rtw_if_up(a) == _TRUE)
- napi_schedule(&a->napi);
-
- }
}
+ }
#endif /* CONFIG_RTW_NAPI_V2 */
#endif /* CONFIG_RTW_NAPI */
-
- return _SUCCESS;
- }
- static void rtl8703bs_recv_tasklet(void *priv)
- {
- _adapter *adapter = (_adapter *)priv;
- s32 ret;
-
- ret = rtl8703bs_recv_hdl(adapter);
- if (ret == RTW_RFRAME_UNAVAIL
- || ret == RTW_RFRAME_PKT_UNAVAIL
- ) {
- /* schedule again and hope recvframe/packet is available next time. */
- #ifdef PLATFORM_LINUX
- tasklet_schedule(&adapter->recvpriv.recv_tasklet);
- #endif
- }
+ return _SUCCESS;
+}
+
+static void rtl8703bs_recv_tasklet(void *priv)
+{
+ _adapter *adapter = (_adapter *)priv;
+ s32 ret;
+
+ ret = rtl8703bs_recv_hdl(adapter);
+ if (ret == RTW_RFRAME_UNAVAIL
+ || ret == RTW_RFRAME_PKT_UNAVAIL
+ ) {
+ /* schedule again and hope recvframe/packet is available next time. */
+ #ifdef PLATFORM_LINUX
+ tasklet_schedule(&adapter->recvpriv.recv_tasklet);
+ #endif
}
+}
#else
static void rtl8703bs_recv_tasklet(void *priv)
{
--
2.35.3