Home
last modified time | relevance | path

Searched hist:cbdae01d8b517b81ed271981395fee8ebd08ba7d (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/infiniband/hw/hfi1/
H A Dipoib_rx.cdiff cbdae01d8b517b81ed271981395fee8ebd08ba7d Mon Sep 26 21:29:19 CDT 2022 Shang XiaoJing <shangxiaojing@huawei.com> IB/hfi1: Use skb_put_data() instead of skb_put/memcpy pair

Use skb_put_data() instead of skb_put() and memcpy(), which is shorter
and clear. Drop the tmp variable that is not needed any more.

Link: https://lore.kernel.org/r/20220927022919.16902-1-shangxiaojing@huawei.com
Signed-off-by: Shang XiaoJing <shangxiaojing@huawei.com>
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@cornelisnetworks.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>