From: Philipp Hortmann <philipp.g.hortmann@gmail.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: [PATCH 3/9] staging: rtl8192e: Replace macro skb_tail_pointer_rsl with standard f.
Date: Fri, 17 Mar 2023 20:13:25 +0100 [thread overview]
Message-ID: <f8c55bd613470a80ae9f45f908be84c0ffb6ebdb.1679077522.git.philipp.g.hortmann@gmail.com> (raw)
In-Reply-To: <cover.1679077522.git.philipp.g.hortmann@gmail.com>
Replace macro skb_tail_pointer_rsl with function skb_tail_pointer to
increase readablility.
Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
---
drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 4 ++--
drivers/staging/rtl8192e/rtllib.h | 2 --
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c b/drivers/staging/rtl8192e/rtl8192e/rtl_core.c
index 47feb4248d25..2ec47c367c5f 100644
--- a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c
+++ b/drivers/staging/rtl8192e/rtl8192e/rtl_core.c
@@ -1653,7 +1653,7 @@ static short _rtl92e_alloc_rx_ring(struct net_device *dev)
priv->rx_buf[rx_queue_idx][i] = skb;
mapping = (dma_addr_t *)skb->cb;
*mapping = dma_map_single(&priv->pdev->dev,
- skb_tail_pointer_rsl(skb),
+ skb_tail_pointer(skb),
priv->rxbuffersize, DMA_FROM_DEVICE);
if (dma_mapping_error(&priv->pdev->dev, *mapping)) {
dev_kfree_skb_any(skb);
@@ -1909,7 +1909,7 @@ static void _rtl92e_rx_normal(struct net_device *dev)
priv->rx_buf[rx_queue_idx][priv->rx_idx[rx_queue_idx]] =
skb;
*((dma_addr_t *)skb->cb) = dma_map_single(&priv->pdev->dev,
- skb_tail_pointer_rsl(skb),
+ skb_tail_pointer(skb),
priv->rxbuffersize, DMA_FROM_DEVICE);
if (dma_mapping_error(&priv->pdev->dev, *((dma_addr_t *)skb->cb))) {
dev_kfree_skb_any(skb);
diff --git a/drivers/staging/rtl8192e/rtllib.h b/drivers/staging/rtl8192e/rtllib.h
index 8e5e29ce8f0d..cb904fc4f574 100644
--- a/drivers/staging/rtl8192e/rtllib.h
+++ b/drivers/staging/rtl8192e/rtllib.h
@@ -62,8 +62,6 @@
#define IW_CUSTOM_MAX 256 /* In bytes */
#endif
-#define skb_tail_pointer_rsl(skb) skb_tail_pointer(skb)
-
#define queue_delayed_work_rsl(x, y, z) queue_delayed_work(x, y, z)
#define INIT_DELAYED_WORK_RSL(x, y, z) INIT_DELAYED_WORK(x, y)
--
2.39.2
next prev parent reply other threads:[~2023-03-17 19:13 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-17 19:13 [PATCH 0/9] staging: rtl8192e: Replace macros in r8192E_phy.h Philipp Hortmann
2023-03-17 19:13 ` [PATCH 1/9] staging: rtl8192e: Remove unused variable rtl819XAGCTAB_Array Philipp Hortmann
2023-03-17 19:13 ` [PATCH 2/9] staging: rtl8192e: Remove double defined constants bMaskBytex and bMask Philipp Hortmann
2023-03-17 19:13 ` Philipp Hortmann [this message]
2023-03-17 19:13 ` [PATCH 4/9] staging: rtl8192e: Remove unused macro queue_delayed_work_rsl and queu Philipp Hortmann
2023-03-22 9:15 ` Greg Kroah-Hartman
2023-03-17 19:13 ` [PATCH 5/9] staging: rtl8192e: Replace macro INIT_DELAYED_WORK_RSL with standard m Philipp Hortmann
2023-03-17 19:13 ` [PATCH 6/9] staging: rtl8192e: Replace macro INIT_WORK_RSL with standard macro Philipp Hortmann
2023-03-17 19:13 ` [PATCH 7/9] staging: rtl8192e: Replace macro container_of_work_rsl with standard f Philipp Hortmann
2023-03-17 19:13 ` [PATCH 8/9] staging: rtl8192e: Replace macro iwe_stream_add_event_rsl " Philipp Hortmann
2023-03-17 19:14 ` [PATCH 9/9] staging: rtl8192e: Replace macro iwe_stream_add_point_rsl " Philipp Hortmann
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=f8c55bd613470a80ae9f45f908be84c0ffb6ebdb.1679077522.git.philipp.g.hortmann@gmail.com \
--to=philipp.g.hortmann@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
/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
all inboxes | Powered by JetHome®