From: Michael Estner <michaelestner@web.de>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: michaelestner@web.de, Larry Finger <Larry.Finger@lwfinger.net>,
Phillip Potter <phil@philpotter.co.uk>,
Michael Straube <straube.linux@gmail.com>,
linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: [PATCH] Remove blank lines and whitespaces
Date: Fri, 24 Sep 2021 16:47:41 +0200 [thread overview]
Message-ID: <20210924144750.6020-1-michaelestner@web.de> (raw)
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
next reply other threads:[~2021-09-24 14:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-24 14:47 Michael Estner [this message]
2021-09-24 17:05 ` [PATCH] Remove blank lines and whitespaces Michael Straube
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210924144750.6020-1-michaelestner@web.de \
--to=michaelestner@web.de \
--cc=Larry.Finger@lwfinger.net \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=phil@philpotter.co.uk \
--cc=straube.linux@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox