Drivers: hv: avoid passing opaque pointer to vmbus_onmessage()
authorVitaly Kuznetsov <vkuznets@redhat.com>
Mon, 6 Apr 2020 10:41:52 +0000 (12:41 +0200)
committerWei Liu <wei.liu@kernel.org>
Thu, 23 Apr 2020 13:17:11 +0000 (13:17 +0000)
commit5cc415001bca8fe0e3f0ee6d58a953a314dd9751
treece40b63b57b59b699d551164ac3ff6f02f52dd63
parenta276463b7aeb6186e7e4315cccb032773fb31b5d
Drivers: hv: avoid passing opaque pointer to vmbus_onmessage()

vmbus_onmessage() doesn't need the header of the message, it only
uses it to get to the payload, we can pass the pointer to the
payload directly.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Link: https://lore.kernel.org/r/20200406104154.45010-4-vkuznets@redhat.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
drivers/hv/channel_mgmt.c
drivers/hv/vmbus_drv.c
include/linux/hyperv.h