bus/vmbus: refactor secondary mapping
authorStephen Hemminger <sthemmin@microsoft.com>
Fri, 8 Feb 2019 03:44:06 +0000 (19:44 -0800)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 29 Mar 2019 12:44:36 +0000 (13:44 +0100)
commit2528d17199643388ba924a531dc6dcc4c66cfecf
treeb290ae815b9411c2139e5c0b3eab91e9b86320fa
parent2a28a502c6078ceb3e5b296b5f9cbb7e27ceedbd
bus/vmbus: refactor secondary mapping

The secondary mapping function was duplicating the code
used to search the uio_resource list.

Skip the unwinding since map failure already makes device
unusable.

Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
drivers/bus/vmbus/vmbus_common_uio.c