From nobody Sun Oct 02 04:29:57 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 4Mg9x149YRz4dtBn; Sun, 2 Oct 2022 04:29:57 +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 4Mg9x12jSHz46B9; Sun, 2 Oct 2022 04:29:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664684997; 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=TmMOG6oQYbYuhFQzQw2DDVNKniW7l0vEO0BLlr7fbVE=; b=LCvQtSD+Xojn5rO7zIjjHxnmkCRl0iyz6fxDpPiicaKRtTO9tTW99RFtS4NehrTLCOwLEG BjqDOqWBG7zeePwcbtZDfuMYmO5hcI6VXKE6oFbH7ph7jyhNEh6djR/pQprR5BpqD4GkRn u/yBWrxO9PxRe+bkze3c8OAaLj0QzbsLUTeM6x/+ZPBsCufO7RsTDISSbnEkVyVHklIRuz DoXAWHGQf/sYod2Al5Bc7/MRnavDHcG2gBdbVtOf8N2Rljyq/2e4CoZ17xD7Waea4mn0RY UgJ8W/S6jWEGPKozNlKk/AUVeFlOl+ydOdp1NDpwds8uiPazLF0JAWQQe1qhNg== 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 4Mg9x11cBSzlNC; Sun, 2 Oct 2022 04:29:57 +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 2924Tvat058888; Sun, 2 Oct 2022 04:29:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2924TvDd058887; Sun, 2 Oct 2022 04:29:57 GMT (envelope-from git) Date: Sun, 2 Oct 2022 04:29:57 GMT Message-Id: <202210020429.2924TvDd058887@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Warner Losh Subject: git: 3f07688cf6ff - stable/13 - atmegadci: eliminate unused variables sc, ep_no 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: imp X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 3f07688cf6ff20b98732a578e7822a978143b33b Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664684997; 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=TmMOG6oQYbYuhFQzQw2DDVNKniW7l0vEO0BLlr7fbVE=; b=gHyTN7BNur6/GOUVdKgwLRb6KuC+4sP/+Q27FnDrabkEmy4OFm6qIrp5NIn07NZIqz5JFO uAJxPDypkqLbJKerm/GAAXbDY/eeZvG99guo4beO/vCsPBtP0olNYlzVJqlEkA3jqNKIfG vJ2k8KdFQze5W3pinHZVjWgkcKufTE5sN28IZZhqm5KA+T5U1ur3LkyIFmQS2HALIjwEgO 7tBMBki7JwVuGjfiwi8JTXg7zdX7IqVeb4h+8EYS1Gyrx7fp392qX3lCTP1SUEQPO3u0gR slmEXOZ+M0FNgbiBoMLL+Y90Vou9ftP32gs2zA7kFrgX3bNCML9n5EfyFnp46g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1664684997; a=rsa-sha256; cv=none; b=rhmU1iLuxh3mttuIfBbnj6mT1Bda+88SsJnJYLd/BYh5QHPQAB7ODKEakbwZm/eZwElkEb obIgKxTXOk6ga4A35lP2d1+i2hZTW8i3QJ3blUDSoHiF3wIdC4fk7paACVVf6Fzxk0ZS3+ c0bcbmYm01g+BJgu4XvpxvwNRZHvwC1KeOmDdmQxsezsZOZyCpoAAHwiHRMoEoBSQDl+ly pO/cq5UR6IdENcYrSWkPXH59QMFDf4UieUOAeXb2n5HkthiazboxKx5yEPmBh7ZqlptLCy 79IZ/ImLnnw9ezYgGrsX5I7thpSISRueLrM3MNk4Mv7kWesY3qyQX/T6kj3+gQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=3f07688cf6ff20b98732a578e7822a978143b33b commit 3f07688cf6ff20b98732a578e7822a978143b33b Author: Warner Losh AuthorDate: 2022-07-08 17:53:33 +0000 Commit: Warner Losh CommitDate: 2022-10-02 04:25:55 +0000 atmegadci: eliminate unused variables sc, ep_no Sponsored by: Netflix (cherry picked from commit e73b02f66b7cf2f385457232de3ee908d695a170) --- sys/dev/usb/controller/atmegadci.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/sys/dev/usb/controller/atmegadci.c b/sys/dev/usb/controller/atmegadci.c index 84f331f557a3..fdb212f3134e 100644 --- a/sys/dev/usb/controller/atmegadci.c +++ b/sys/dev/usb/controller/atmegadci.c @@ -775,10 +775,8 @@ static void atmegadci_setup_standard_chain(struct usb_xfer *xfer) { struct atmegadci_std_temp temp; - struct atmegadci_softc *sc; struct atmegadci_td *td; uint32_t x; - uint8_t ep_no; uint8_t need_sync; DPRINTFN(9, "addr=%d endpt=%d sumlen=%d speed=%d\n", @@ -801,9 +799,6 @@ atmegadci_setup_standard_chain(struct usb_xfer *xfer) xfer->flags_int.isochronous_xfr; temp.did_stall = !xfer->flags_int.control_stall; - sc = ATMEGA_BUS2SC(xfer->xroot->bus); - ep_no = (xfer->endpointno & UE_ADDR); - /* check if we should prepend a setup message */ if (xfer->flags_int.control_xfr) { @@ -1956,14 +1951,12 @@ static void atmegadci_xfer_setup(struct usb_setup_params *parm) { const struct usb_hw_ep_profile *pf; - struct atmegadci_softc *sc; struct usb_xfer *xfer; void *last_obj; uint32_t ntd; uint32_t n; uint8_t ep_no; - sc = ATMEGA_BUS2SC(parm->udev->bus); xfer = parm->curr_xfer; /*