diff options
author | Shay Agroskin <shayagr@amazon.com> | 2021-06-08 19:01:17 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-06-08 14:41:10 -0700 |
commit | 947c54c395cb8368abebf3bec1413123d5dd4339 (patch) | |
tree | 5babbd1c71fb940c25a1897bda1c0878184f11cb /net/lapb/lapb_iface.c | |
parent | 9e8afb05961147509181baf4de5cbd644757e850 (diff) | |
download | linux-947c54c395cb8368abebf3bec1413123d5dd4339.tar.gz linux-947c54c395cb8368abebf3bec1413123d5dd4339.tar.bz2 linux-947c54c395cb8368abebf3bec1413123d5dd4339.zip |
net: ena: Use dev_alloc() in RX buffer allocation
Use dev_alloc() when allocating RX buffers instead of specifying the
allocation flags explicitly. This result in same behaviour with less
code.
Also move the page allocation and its DMA mapping into a function. This
creates a logical block, which may help understanding the code.
Signed-off-by: Shay Agroskin <shayagr@amazon.com>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions