From nobody Wed Apr 06 23:46:12 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id B16061A835E9; Wed, 6 Apr 2022 23:46:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KYh3m1smLz4R3j; Wed, 6 Apr 2022 23:46:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649288772; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=HxYl5TtUSXkiPTwNs400oNg/pp1nqZvS5RmD+tzdTiA=; b=UZ6ISgJB0wDJGEta273X1glfz90XobYGDwV7rjrQtHzNwFemC3Bqryl/ZG8Icfo8/O9Ayb TymXpRndkW1gTXfMk4DQOv3LEQ/WilA/xEqoedFt7AajSFLqk6S9Jn0NEuqhO/4CpCAmrZ OpOP//E3PmzgaBdDVPuf4SPkqqX/erKkly7Ti9WyluJoJoPre+5TSitKLkoAvMARQT/oww nyeOuEjaWz2jlS22hAxJds6jIEQ1L419cHCsV1YsQ/Ma8ezK8DdvtATdy3DCkq3oRCu/Iv IHcBp/PlTEN7mNdoX8XsvTZRIKDgyVn9vlYrTh1q5LKJepB5icGp8d06Os53bQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 1985324C75; Wed, 6 Apr 2022 23:46:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 236NkCwa008919; Wed, 6 Apr 2022 23:46:12 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 236NkC2s008918; Wed, 6 Apr 2022 23:46:12 GMT (envelope-from git) Date: Wed, 6 Apr 2022 23:46:12 GMT Message-Id: <202204062346.236NkC2s008918@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: b024faffa0c7 - main - hyperv storvsc: Remove unused variables. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b024faffa0c7d008b2f25a8637dd017a778af815 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649288772; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=HxYl5TtUSXkiPTwNs400oNg/pp1nqZvS5RmD+tzdTiA=; b=DGBK3QMPtcVMqsqw8D0E7nbNeZkaX9FVfnAO60HC+JemBt+ygO5GXKl2BU3y1eDmlS9zYn WR0sCKJ+oEQhNj8k4/pHYAcBAU5RddFnRpofUDZ7ziIUXvl8dpLfVUrVHLkttBlZoTrIEv Pxm7wcpThJOOXDhIxxuVTTH2FP2oQKHBeyQHqYVy9LX1wy2xSfLqWzF1FXMLgjF0J81rn8 Bz0gRIFhONkqstGSC7DBNM7ucb+owwDR2wbR5LIxak2Ls6grldZgt398UwFT9KZZlRhGBB GOXp5NZK0MvNxxPMKNfYPGxnWgFCRrH4mpKbCpsPiMOX0XL+/s8neB5h0lRcvg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649288772; a=rsa-sha256; cv=none; b=wcfbGp+H64OQFov8QpUcLyhw1oVbJOjyV3cBlRNhC2p5tGWX61YoEol2PLgCRrz1lxWLP+ pQBDgPNA1amVFtQy3StnUfyBLKXGwxT5FUnF4VT2FN6H9q00mT9rHdEsGD8hTOD7nTV9bD s/Q1pLYqFtg0Dkp+uRMwRirpmC341Hx0O6L+6ZqUijU/hJXOkyHM+tVPXKERt+25IRwPC7 gTFAYZ4KI27MdOoQw38H6HUaSujYVyCDW/Zji+J8+WnLxlEOSZW1+n4JVkN3nM0lh1uLI/ IIXC493MpeYqVz6JXvGRmPXfv5FqEisumEQ/+6a1btSF3VKqIK8YRBMTsJ+S/Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=b024faffa0c7d008b2f25a8637dd017a778af815 commit b024faffa0c7d008b2f25a8637dd017a778af815 Author: John Baldwin AuthorDate: 2022-04-06 23:45:28 +0000 Commit: John Baldwin 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);