ethernet: s2io: Use skb_put_data() instead of skb_put/memcpy pair
authorShang XiaoJing <shangxiaojing@huawei.com>
Tue, 27 Sep 2022 02:28:02 +0000 (10:28 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 29 Sep 2022 07:19:09 +0000 (09:19 +0200)
commit1469327bb3dd04c0c84692e9af930bdd3f7b4230
treeba5b87976b28b0c550962bf71834a87c5d97b0f9
parentceed40d79956d6e40882a8b4fa34a2f91ac2513a
ethernet: s2io: 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.

Signed-off-by: Shang XiaoJing <shangxiaojing@huawei.com>
Link: https://lore.kernel.org/r/20220927022802.16050-1-shangxiaojing@huawei.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/neterion/s2io.c