Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Dexuan Cui and committed by
Greg Kroah-Hartman
89760937 1c9a4be5

+1 -1
+1 -1
drivers/hv/connection.c
··· 409 409 * HV_STATUS_INVALID_CONNECTION_ID and we should 410 410 * return an error immediately without retrying. 411 411 */ 412 - hdr = (struct vmbus_channel_message_header *)buffer; 412 + hdr = buffer; 413 413 if (hdr->msgtype == CHANNELMSG_INITIATE_CONTACT) 414 414 return -EINVAL; 415 415 /*