Commit 24ccb0ab authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Jakub Kicinski

qede: qede_fp: simplify a bit 'qede_rx_build_skb()'

Use 'skb_put_data()' instead of rewritting it.
This improves readability.
Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarJakub Kicinski <jakub.kicinski@netronome.com>
parent b6b6cc9a
...@@ -779,8 +779,7 @@ qede_rx_build_skb(struct qede_dev *edev, ...@@ -779,8 +779,7 @@ qede_rx_build_skb(struct qede_dev *edev,
return NULL; return NULL;
skb_reserve(skb, pad); skb_reserve(skb, pad);
memcpy(skb_put(skb, len), skb_put_data(skb, page_address(bd->data) + offset, len);
page_address(bd->data) + offset, len);
qede_reuse_page(rxq, bd); qede_reuse_page(rxq, bd);
goto out; goto out;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment