diff options
author | Vitaly Kuznetsov <vkuznets@redhat.com> | 2020-04-06 12:41:52 +0200 |
---|---|---|
committer | Wei Liu <wei.liu@kernel.org> | 2020-04-23 13:17:11 +0000 |
commit | 5cc415001bca8fe0e3f0ee6d58a953a314dd9751 (patch) | |
tree | ce40b63b57b59b699d551164ac3ff6f02f52dd63 /drivers/hv/channel_mgmt.c | |
parent | a276463b7aeb6186e7e4315cccb032773fb31b5d (diff) | |
download | linux-stable-5cc415001bca8fe0e3f0ee6d58a953a314dd9751.tar.gz linux-stable-5cc415001bca8fe0e3f0ee6d58a953a314dd9751.tar.bz2 linux-stable-5cc415001bca8fe0e3f0ee6d58a953a314dd9751.zip |
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>
Diffstat (limited to 'drivers/hv/channel_mgmt.c')
-rw-r--r-- | drivers/hv/channel_mgmt.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/hv/channel_mgmt.c b/drivers/hv/channel_mgmt.c index 501c43c5851d..da93b5f1b143 100644 --- a/drivers/hv/channel_mgmt.c +++ b/drivers/hv/channel_mgmt.c @@ -1363,13 +1363,8 @@ channel_message_table[CHANNELMSG_COUNT] = { * * This is invoked in the vmbus worker thread context. */ -void vmbus_onmessage(void *context) +void vmbus_onmessage(struct vmbus_channel_message_header *hdr) { - struct hv_message *msg = context; - struct vmbus_channel_message_header *hdr; - - hdr = (struct vmbus_channel_message_header *)msg->u.payload; - trace_vmbus_on_message(hdr); /* |