[PATCH] Remove blank lines and whitespaces

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Removed blank lines and whitespaces to clean up code.

Signed-off-by: Michael Estner <michaelestner@xxxxxx>
---
 drivers/staging/r8188eu/core/rtw_io.c | 65 ++++++++++-----------------
 1 file changed, 24 insertions(+), 41 deletions(-)

diff --git a/drivers/staging/r8188eu/core/rtw_io.c b/drivers/staging/r8188eu/core/rtw_io.c
index cde0205816b1..4abbd551db81 100644
--- a/drivers/staging/r8188eu/core/rtw_io.c
+++ b/drivers/staging/r8188eu/core/rtw_io.c
@@ -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.
-
-jackson@xxxxxxxxxxxxxx
-
-*/
+ *
+ * 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.
+ *
+ * jackson@xxxxxxxxxxxxxx
+ *
+ */

 #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





[Index of Archives]     [Linux Driver Development]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux