From nobody Tue Apr 05 04:32:48 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 384021A9231E; Tue, 5 Apr 2022 04:32:49 +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 4KXZWN5N27z4gYB; Tue, 5 Apr 2022 04:32:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649133169; 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=FsFILpipqyQd4N78WQoOLf0VZweifdMsmq+2w8BsnIA=; b=bMEziQYE2jgqwNv50UQjsk/JX7GsVw5+fSvbPqCF3sa4lcZuOe/B27puLIzddWbPMO/MtM kDuuGnzn6D2RFjXRSbutB4ihav2LSMN3ZOEZnCMtf7yuoH/5g6xsoczLJ7s4TgQ0J5dhg3 EDmThGoMcX3NxqruTvH2mc41iIAofvFzuafJjDtdeM635+Vzuhr7JGTN9zlzVyQYoPTP46 UFpDjc6UHLBsDIAuIpsU7ZJpjkR4lriuhe8owMiWlms7legpwiGPqYMO3FIhTmZ1rEucbX Af70kzNBS1f149CWl2rXpJWP+FGVtTj40GB7KBdcaVGhnmxQ01XAFZsVLCwc4Q== 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 96DEF1FBA2; Tue, 5 Apr 2022 04:32:48 +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 2354WmOX009489; Tue, 5 Apr 2022 04:32:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2354Wmgb009488; Tue, 5 Apr 2022 04:32:48 GMT (envelope-from git) Date: Tue, 5 Apr 2022 04:32:48 GMT Message-Id: <202204050432.2354Wmgb009488@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: ab59cd6a0b3b - main - musb: eliminate write only variable sc 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/main X-Git-Reftype: branch X-Git-Commit: ab59cd6a0b3bb00ef8101180eae54982090317a2 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649133169; 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=FsFILpipqyQd4N78WQoOLf0VZweifdMsmq+2w8BsnIA=; b=tmX+izVkZ/Vuxn0qca01DL7CqqFmx7WoNih0R4qhKLZfdfdWeyQET9g8gzlbStjUifsa6l gq7cmsvX7ks5Ioh/09T/dq+b4w+T9KnPI+tEf2jTi5+/UbmEn9CCd0IyxTf2QGAuLgX8QL j4GkFsX4TvUhpIF1UWowu0aQBCcehHePaJQPkZFlhSEWVmpDci1EwD06bn/EULqkDrwIb8 THEvIhschnTcPx24iUi3/7aX5F7xUx/UTSuXodYrgYVnkKF5LLraEb0I3c72UclpQOgSDS zf2sFpnetW61+B48PSHvVOt2kaOs++UJz4b4sLSD719NxmOI7uiDtwjsRDrIug== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649133169; a=rsa-sha256; cv=none; b=HkVBVmjd18WrFiO9P5MzwKecn+AotM2nWvI6UyhSXrVnDRaER9HcJCbRcvzxEGHDt+2ykY eRez5FMYbW8kjeyYsZGALfHyQ/a71bexl/QBvq5yhLDuE4vuDfiV50J6U746HFKiNmI4Z6 kE5zpOt3eoxeY+5FaoPg5d1mfBrdJJhKgWIpt5w89uLmBscQNPWJ9OQTfyrdNyKuyTQrhS 2Zef6iU8HLmsRFhlSUmh+Nfh4553E78venK4P1HwnxjExpXCS7+B6yJA/sEvRMLMuuNEhl N8cWaKczAhVVMDmOwho2iHgTd9JCsFFzMV37j6NBlBCozBFrmunDlGTgFruvIQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=ab59cd6a0b3bb00ef8101180eae54982090317a2 commit ab59cd6a0b3bb00ef8101180eae54982090317a2 Author: Warner Losh AuthorDate: 2022-04-05 02:27:08 +0000 Commit: Warner Losh CommitDate: 2022-04-05 04:30:26 +0000 musb: eliminate write only variable sc Sponsored by: Netflix --- sys/dev/usb/controller/musb_otg.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/sys/dev/usb/controller/musb_otg.c b/sys/dev/usb/controller/musb_otg.c index aa24544f8893..292f45f005ce 100644 --- a/sys/dev/usb/controller/musb_otg.c +++ b/sys/dev/usb/controller/musb_otg.c @@ -2126,12 +2126,9 @@ musbotg_host_data_tx(struct musbotg_td *td) static uint8_t musbotg_xfer_do_fifo(struct usb_xfer *xfer) { - struct musbotg_softc *sc; struct musbotg_td *td; DPRINTFN(8, "\n"); - sc = MUSBOTG_BUS2SC(xfer->xroot->bus); - td = xfer->td_transfer_cache; while (1) { if ((td->func) (td)) { @@ -4012,14 +4009,12 @@ done: static void musbotg_xfer_setup(struct usb_setup_params *parm) { - struct musbotg_softc *sc; struct usb_xfer *xfer; void *last_obj; uint32_t ntd; uint32_t n; uint8_t ep_no; - sc = MUSBOTG_BUS2SC(parm->udev->bus); xfer = parm->curr_xfer; /*