From: Dexuan Cui Date: Tue, 15 May 2018 00:25:01 +0000 (+0000) Subject: Drivers: hv: vmbus: Removed an unnecessary cast from void * X-Git-Tag: v4.18-rc1~135^2~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=897609370d25c69e95a174dbd75df6e5bc3a26c8;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Dexuan Cui Cc: K. Y. Srinivasan Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/hv/connection.c b/drivers/hv/connection.c index 19e046820fdaf..ced0418994568 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; /*