[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220927023254.30342-1-shangxiaojing@huawei.com>
Date: Tue, 27 Sep 2022 10:32:54 +0800
From: Shang XiaoJing <shangxiaojing@...wei.com>
To: <m.chetan.kumar@...el.com>, <linuxwwan@...el.com>,
<loic.poulain@...aro.org>, <ryazanov.s.a@...il.com>,
<johannes@...solutions.net>, <davem@...emloft.net>,
<edumazet@...gle.com>, <kuba@...nel.org>, <pabeni@...hat.com>,
<netdev@...r.kernel.org>
CC: <shangxiaojing@...wei.com>
Subject: [PATCH -next] net: wwan: iosm: Use skb_put_data() instead of skb_put/memcpy pair
Use skb_put_data() instead of skb_put() and memcpy(), which is clear.
Signed-off-by: Shang XiaoJing <shangxiaojing@...wei.com>
---
drivers/net/wwan/iosm/iosm_ipc_imem_ops.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/wwan/iosm/iosm_ipc_imem_ops.c b/drivers/net/wwan/iosm/iosm_ipc_imem_ops.c
index 57304a5adf68..b7f9237dedf7 100644
--- a/drivers/net/wwan/iosm/iosm_ipc_imem_ops.c
+++ b/drivers/net/wwan/iosm/iosm_ipc_imem_ops.c
@@ -590,7 +590,7 @@ int ipc_imem_sys_devlink_write(struct iosm_devlink *ipc_devlink,
goto out;
}
- memcpy(skb_put(skb, count), buf, count);
+ skb_put_data(skb, buf, count);
IPC_CB(skb)->op_type = UL_USR_OP_BLOCKED;
--
2.17.1
Powered by blists - more mailing lists