linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Remove blank lines and whitespaces
@ 2021-09-24 14:47 Michael Estner
  2021-09-24 17:05 ` Michael Straube
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Estner @ 2021-09-24 14:47 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: michaelestner, Larry Finger, Phillip Potter, Michael Straube,
	linux-staging, linux-kernel

Removed blank lines and whitespaces to clean up code.

Signed-off-by: Michael Estner <michaelestner@web.de>
---
 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@realtek.com.tw
-
-*/
+ *
+ * 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@realtek.com.tw
+ *
+ */

 #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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Remove blank lines and whitespaces
  2021-09-24 14:47 [PATCH] Remove blank lines and whitespaces Michael Estner
@ 2021-09-24 17:05 ` Michael Straube
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Straube @ 2021-09-24 17:05 UTC (permalink / raw)
  To: Michael Estner, Greg Kroah-Hartman
  Cc: Larry Finger, Phillip Potter, linux-staging, linux-kernel

On 9/24/21 16:47, Michael Estner wrote:
> Removed blank lines and whitespaces to clean up code.
> 
> Signed-off-by: Michael Estner <michaelestner@web.de>
> ---
>   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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-09-24 17:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-24 14:47 [PATCH] Remove blank lines and whitespaces Michael Estner
2021-09-24 17:05 ` Michael Straube

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).