Commit e8e7f421 authored by Thierry Escande's avatar Thierry Escande Committed by Samuel Ortiz

NFC: digital: Remove useless call to skb_reserve()

When allocating chained I-PDUs, there is no need to call skb_reserve()
since it's already done by digital_alloc_skb() and contains enough room
for the driver head and tail data.
Signed-off-by: default avatarThierry Escande <thierry.escande@collabora.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent 1d984c2e
...@@ -190,8 +190,6 @@ digital_send_dep_data_prep(struct nfc_digital_dev *ddev, struct sk_buff *skb, ...@@ -190,8 +190,6 @@ digital_send_dep_data_prep(struct nfc_digital_dev *ddev, struct sk_buff *skb,
return ERR_PTR(-ENOMEM); return ERR_PTR(-ENOMEM);
} }
skb_reserve(new_skb, ddev->tx_headroom + NFC_HEADER_SIZE +
DIGITAL_NFC_DEP_REQ_RES_HEADROOM);
memcpy(skb_put(new_skb, ddev->remote_payload_max), skb->data, memcpy(skb_put(new_skb, ddev->remote_payload_max), skb->data,
ddev->remote_payload_max); ddev->remote_payload_max);
skb_pull(skb, ddev->remote_payload_max); skb_pull(skb, ddev->remote_payload_max);
......
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