]> 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)
commitc8f30ecf06bdff980f1205f36f6b25f3d3390c19
tree567f9e12acbc92f2fa3f16f8af9fb84fd18cbba3
parent557c32b28d20efd3b1fcf48739d672a8f8ca87ef
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