]> git.baikalelectronics.ru Git - kernel.git/commit
IB/hfi1: Use skb_put_data() instead of skb_put/memcpy pair
authorShang XiaoJing <shangxiaojing@huawei.com>
Tue, 27 Sep 2022 02:29:19 +0000 (10:29 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 27 Sep 2022 13:43:10 +0000 (10:43 -0300)
commit4dd68cebea45667ff6a0175e68242e8db1a25edf
tree016e86d7afda2d2dea4d05fafad690d088e08a07
parent08776c7942dd6754c4736ac465dec69615c9d10c
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>
drivers/infiniband/hw/hfi1/ipoib_rx.c