diff --git a/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c b/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c index 091515e1f5df..33d88db83ac0 100644 --- a/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c +++ b/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c @@ -381,12 +381,11 @@ storvsc_subchan_attach(struct storvsc_softc *sc, struct vmbus_channel *new_channel) { struct vmstor_chan_props props; - int ret = 0; memset(&props, 0, sizeof(props)); vmbus_chan_cpu_rr(new_channel); - ret = vmbus_chan_open(new_channel, + vmbus_chan_open(new_channel, sc->hs_drv_props->drv_ringbuffer_size, sc->hs_drv_props->drv_ringbuffer_size, (void *)&props, @@ -407,7 +406,7 @@ storvsc_send_multichannel_request(struct storvsc_softc *sc, int max_subch) struct hv_storvsc_request *request; struct vstor_packet *vstor_packet; int request_subch; - int ret, i; + int i; /* get sub-channel count that need to create */ request_subch = MIN(max_subch, mp_ncpus - 1); @@ -425,7 +424,7 @@ storvsc_send_multichannel_request(struct storvsc_softc *sc, int max_subch) vstor_packet->flags = REQUEST_COMPLETION_FLAG; vstor_packet->u.multi_channels_cnt = request_subch; - ret = vmbus_chan_send(sc->hs_chan, + vmbus_chan_send(sc->hs_chan, VMBUS_CHANPKT_TYPE_INBAND, VMBUS_CHANPKT_FLAG_RC, vstor_packet, VSTOR_PKT_SIZE, (uint64_t)(uintptr_t)request);