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@huawei.com> Reviewed-by: M Chetan Kumar <m.chetan.kumar@intel.com> Link: https://lore.kernel.org/r/20220927023254.30342-1-shangxiaojing@huawei.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
8278ddb161
commit
f45892f750
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user