Skip to contentSkip to conversation

Remove blank lines and whitespaces

PATCH In review Michael Estner 2 participants 2 messages Sep 24, 2021 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Remove blank lines and whitespaces

Removed blank lines and whitespaces to clean up code.

---
 drivers/staging/r8188eu/core/rtw_io.c | 65 ++++++++++-----------------
 1 file changed, 24 insertions(+), 41 deletions(-)
drivers/staging/r8188eu/core/rtw_io.c +24 -41
index cde0205816b1..4abbd551db81 100644
@@ -2,25 +2,25 @@
 /* Copyright(c) 2007 - 2011 Realtek Corporation. */
 
 /*
-
-The purpose of rtw_io.c
-
-a. provides the API
-
-b. provides the protocol engine
-
-c. provides the software interface between caller and the hardware interface
-
-Compiler Flag Option:
-
-USB:
-   a. USE_ASYNC_IRP: Both sync/async operations are provided.
-
-Only sync read/rtw_write_mem operations are provided.
-
-[email protected]
-
-*/
+ *
+ * The purpose of rtw_io.c
+ *
+ * a. provides the API
+ *
+ * b. provides the protocol engine
+ *
+ * c. provides the software interface between caller and the hardware interface
+ *
+ * Compiler Flag Option:
+ *
+ * USB:
+ *    a. USE_ASYNC_IRP: Both sync/async operations are provided.
+ *
+ * Only sync read/rtw_write_mem operations are provided.
+ *
+ * [email protected]
+ *
+ */
 
 #define _RTW_IO_C_
 #include "../include/osdep_service.h"
@@ -41,7 +41,6 @@ u8 _rtw_read8(struct adapter *adapter, u32 addr)
 	struct	intf_hdl *pintfhdl = &pio_priv->intf;
 	u8 (*_read8)(struct intf_hdl *pintfhdl, u32 addr);
 
-
 	_read8 = pintfhdl->io_ops._read8;
 	r_val = _read8(pintfhdl, addr);
 
@@ -87,7 +86,6 @@ int _rtw_write8(struct adapter *adapter, u32 addr, u8 val)
 
 	ret = _write8(pintfhdl, addr, val);
 
-
 	return RTW_STATUS_CODE(ret);
 }
 
@@ -102,9 +100,9 @@ int _rtw_write16(struct adapter *adapter, u32 addr, u16 val)
 
 	ret = _write16(pintfhdl, addr, val);
 
-
 	return RTW_STATUS_CODE(ret);
 }
+
 int _rtw_write32(struct adapter *adapter, u32 addr, u32 val)
 {
 	struct io_priv *pio_priv = &adapter->iopriv;
@@ -116,7 +114,6 @@ int _rtw_write32(struct adapter *adapter, u32 addr, u32 val)
 
 	ret = _write32(pintfhdl, addr, val);
 
-
 	return RTW_STATUS_CODE(ret);
 }
 
@@ -131,9 +128,9 @@ int _rtw_writeN(struct adapter *adapter, u32 addr, u32 length, u8 *pdata)
 
 	ret = _writeN(pintfhdl, addr, length, pdata);
 
-
 	return RTW_STATUS_CODE(ret);
 }
+
 int _rtw_write8_async(struct adapter *adapter, u32 addr, u8 val)
 {
 	struct io_priv *pio_priv = &adapter->iopriv;
@@ -145,7 +142,6 @@ int _rtw_write8_async(struct adapter *adapter, u32 addr, u8 val)
 
 	ret = _write8_async(pintfhdl, addr, val);
 
-
 	return RTW_STATUS_CODE(ret);
 }
 
@@ -181,12 +177,11 @@ void _rtw_read_mem(struct adapter *adapter, u32 addr, u32 cnt, u8 *pmem)
 	struct io_priv *pio_priv = &adapter->iopriv;
 	struct	intf_hdl		*pintfhdl = &pio_priv->intf;
 
-
 	if (adapter->bDriverStopped || adapter->bSurpriseRemoved)
-	     return;
+		return;
+
 	_read_mem = pintfhdl->io_ops._read_mem;
 	_read_mem(pintfhdl, addr, cnt, pmem);
-
 }
 
 void _rtw_write_mem(struct adapter *adapter, u32 addr, u32 cnt, u8 *pmem)
@@ -195,13 +190,9 @@ void _rtw_write_mem(struct adapter *adapter, u32 addr, u32 cnt, u8 *pmem)
 	struct io_priv *pio_priv = &adapter->iopriv;
 	struct	intf_hdl		*pintfhdl = &pio_priv->intf;
 
-
-
 	_write_mem = pintfhdl->io_ops._write_mem;
 
 	_write_mem(pintfhdl, addr, cnt, pmem);
-
-
 }
 
 void _rtw_read_port(struct adapter *adapter, u32 addr, u32 cnt, u8 *pmem)
@@ -210,16 +201,12 @@ void _rtw_read_port(struct adapter *adapter, u32 addr, u32 cnt, u8 *pmem)
 	struct io_priv *pio_priv = &adapter->iopriv;
 	struct	intf_hdl		*pintfhdl = &pio_priv->intf;
 
-
-
 	if (adapter->bDriverStopped || adapter->bSurpriseRemoved)
-	     return;
+		return;
 
 	_read_port = pintfhdl->io_ops._read_port;
 
 	_read_port(pintfhdl, addr, cnt, pmem);
-
-
 }
 
 void _rtw_read_port_cancel(struct adapter *adapter)
@@ -241,14 +228,10 @@ u32 _rtw_write_port(struct adapter *adapter, u32 addr, u32 cnt, u8 *pmem)
 	struct	intf_hdl		*pintfhdl = &pio_priv->intf;
 	u32 ret = _SUCCESS;
 
-
-
 	_write_port = pintfhdl->io_ops._write_port;
 
 	ret = _write_port(pintfhdl, addr, cnt, pmem);
 
-
-
 	return ret;
 }
 

--
2.25.1

#1 lore raw
Quoted 7 lines · Michael Estner

Removed blank lines and whitespaces to clean up code.

---
  drivers/staging/r8188eu/core/rtw_io.c | 65 ++++++++++-----------------
  1 file changed, 24 insertions(+), 41 deletions(-)

Hi Michael,

the file rtw_io.c was removed entirely with commit 06c38fef11bc ("staging: r8188eu: remove core/rtw_io.c").

You should work against the latest staging-next tree.

Best regards,
Michael