summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBartosz Golaszewski <bgolaszewski@baylibre.com>2020-05-23 16:27:09 +0300
committerDavid S. Miller <davem@davemloft.net>2020-05-24 02:56:17 +0300
commitf75063abc39441585a13fcc5b9ef3af993e9ac40 (patch)
tree4159a8ce4a8e566442ee3a764d08661aa087ff21 /include
parentcb8a14b205699fee1053a406e1e3fce330b6bdc3 (diff)
downloadlinux-f75063abc39441585a13fcc5b9ef3af993e9ac40.tar.xz
net: devres: define a separate devres structure for devm_alloc_etherdev()
Not using a proxy structure to store struct net_device doesn't save anything in terms of compiled code size or memory usage but significantly decreases the readability of the code with all the pointer casting. Define struct net_device_devres and use it in devm_alloc_etherdev_mqs(). Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions