Skip to content

Commit

Permalink
Drivers: hv: vmbus: Removed an unnecessary cast from void *
Browse files Browse the repository at this point in the history
In C, we don't need such a cast.

Fixes: ae20b25 ("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>
  • Loading branch information
Dexuan Cui authored and Greg Kroah-Hartman committed May 15, 2018
1 parent 1c9a4be commit 8976093
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hv/connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
/*
Expand Down

0 comments on commit 8976093

Please sign in to comment.