summaryrefslogtreecommitdiffstats
path: root/drivers/net/virtio_net.c
diff options
context:
space:
mode:
authorBreno Leitao <leitao@debian.org>2023-08-11 11:31:57 +0200
committerJakub Kicinski <kuba@kernel.org>2023-08-18 04:25:42 +0200
commitb0a9e2c9a99f64e3c59e8a32a11b90c667201203 (patch)
tree3e7a6c5c6a18a32a56733245a436c1b36e41f537 /drivers/net/virtio_net.c
parentnet: mdio: fix -Wvoid-pointer-to-enum-cast warning (diff)
downloadlinux-b0a9e2c9a99f64e3c59e8a32a11b90c667201203.tar.xz
linux-b0a9e2c9a99f64e3c59e8a32a11b90c667201203.zip
netconsole: Create a allocation helper
De-duplicate the initialization and allocation code for struct netconsole_target. The same allocation and initialization code is duplicated in two different places in the netconsole subsystem, when the netconsole target is initialized by command line parameters (alloc_param_target()), and dynamically by sysfs (make_netconsole_target()). Create a helper function, and call it from the two different functions. Suggested-by: Eric Dumazet <edumazet@google.com> Signed-off-by: Breno Leitao <leitao@debian.org> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://lore.kernel.org/r/20230811093158.1678322-2-leitao@debian.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/virtio_net.c')
0 files changed, 0 insertions, 0 deletions