hv_netvsc: Refactor assignments of struct netvsc_device_info
authorHaiyang Zhang <haiyangz@microsoft.com>
Tue, 15 Jan 2019 00:51:43 +0000 (00:51 +0000)
committerSasha Levin <sashal@kernel.org>
Wed, 23 Jan 2019 18:20:10 +0000 (13:20 -0500)
commit7c9f335a3ff20557a92584199f3d35c7e992bbe5
treed4f5f2ae826ce1574fc80a69941fd8fdff5e9ee7
parentb4a10c750424e01b5e37372fef0a574ebf7b56c3
hv_netvsc: Refactor assignments of struct netvsc_device_info

These assignments occur in multiple places. The patch refactor them
to a function for simplicity. It also puts the struct to heap area
for future expension.

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
[sl: fix up subject line]
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/hyperv/netvsc_drv.c