git: b024faffa0c7 - main - hyperv storvsc: Remove unused variables.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 06 Apr 2022 23:46:12 UTC
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=b024faffa0c7d008b2f25a8637dd017a778af815
commit b024faffa0c7d008b2f25a8637dd017a778af815
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-04-06 23:45:28 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-04-06 23:45:28 +0000
hyperv storvsc: Remove unused variables.
---
sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
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);