]> git.baikalelectronics.ru Git - kernel.git/commit
net: wwan: t7xx: Avoid calls to skb_data_area_size()
authorRicardo Martinez <ricardo.martinez@linux.intel.com>
Fri, 13 May 2022 17:33:59 +0000 (10:33 -0700)
committerJakub Kicinski <kuba@kernel.org>
Mon, 16 May 2022 20:45:26 +0000 (13:45 -0700)
commit262d98b1193fec68c66f3d57772b72240fc4b9da
tree567f9e12acbc92f2fa3f16f8af9fb84fd18cbba3
parent2ba5c8163038bcbac34540d9ecae574d390a031f
net: wwan: t7xx: Avoid calls to skb_data_area_size()

skb_data_area_size() helper was used to calculate the size of the
DMA mapped buffer passed to the HW. Instead of doing this, use the
size passed to allocate the skbs.

Signed-off-by: Ricardo Martinez <ricardo.martinez@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
drivers/net/wwan/t7xx/t7xx_hif_dpmaif_rx.c