summaryrefslogtreecommitdiff
path: root/drivers/hv
diff options
context:
space:
mode:
authorDexuan Cui <decui@microsoft.com>2018-05-15 00:25:01 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-05-15 09:40:37 +0200
commit897609370d25c69e95a174dbd75df6e5bc3a26c8 (patch)
tree8165f3f0e1c17aa66bf73c91f0c8861eaf3d771f /drivers/hv
parent1c9a4be514e7a946f7811f10d6d0ebab1ec6dd56 (diff)
Drivers: hv: vmbus: Removed an unnecessary cast from void *
In C, we don't need such a cast. Fixes: ae20b254306a ("Drivers: hv: vmbus: enable VMBus protocol version 5.0") Reported-by: Stephen Hemminger <sthemmin@microsoft.com> Signed-off-by: Dexuan Cui <decui@microsoft.com> Cc: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hv')
-rw-r--r--drivers/hv/connection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hv/connection.c b/drivers/hv/connection.c
index 19e046820fda..ced041899456 100644
--- a/drivers/hv/connection.c
+++ b/drivers/hv/connection.c
@@ -409,7 +409,7 @@ int vmbus_post_msg(void *buffer, size_t buflen, bool can_sleep)
* HV_STATUS_INVALID_CONNECTION_ID and we should
* return an error immediately without retrying.
*/
- hdr = (struct vmbus_channel_message_header *)buffer;
+ hdr = buffer;
if (hdr->msgtype == CHANNELMSG_INITIATE_CONTACT)
return -EINVAL;
/*