From nobody Sun Oct 02 04:29:58 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 4Mg9x24JQFz4dtKL; Sun, 2 Oct 2022 04:29:58 +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 4Mg9x23gHfz46Mc; Sun, 2 Oct 2022 04:29:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664684998; 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=owBM8eJ2qLm8WrxUf/+CvI5tkKyN0E1GV58E2rTod2E=; b=Me+ioX495uSd9kHDyBgCBGEoWNsKTKqhL6yksHCMbvD/egWxh0Nea0Q1elfNGe6+naQJHW UWr+rmpRkdWzXyDoTvZFLZRjLXVAUiVxteSZIXasq7BbhJ3xn+2zgmhugJzVQMbqFrcxa+ 2V6jaEONy5CCRsQHuoUY0RZipmocqg08hslDrxU/u19si7CMMWzXs/6DmwLVb/HOqB79xS x5BBd++pURXRDgiMAee4P8GGWvjVSSF1fPTRmQM9ljU+yfmmq6YEE4RSbDtcaAsKtV60uF W+jnmwPpSoeFvgqmJzXK/F/b59Ma7kmaPUkqWBKvMejlsU1pERmS2BztuBxceg== 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 4Mg9x22lmPzlYM; Sun, 2 Oct 2022 04:29:58 +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 2924TwU2058912; Sun, 2 Oct 2022 04:29:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2924Twse058911; Sun, 2 Oct 2022 04:29:58 GMT (envelope-from git) Date: Sun, 2 Oct 2022 04:29:58 GMT Message-Id: <202210020429.2924Twse058911@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: bbc76273173e - stable/13 - 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/stable/13 X-Git-Reftype: branch X-Git-Commit: bbc76273173e9bdbb69c9c2212bb13643f3c6756 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664684998; 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=owBM8eJ2qLm8WrxUf/+CvI5tkKyN0E1GV58E2rTod2E=; b=Wg6TXMxBFNEaOOHauwbx6a5imefHHb9WihgYMJ01igcm7juUPTwq9Suvg32/ns1Jiui+Oe uE4zL3HZpl6cmo7fZSor3X86Em0YmvQi6PXJuej7P7fhNoFbYgo/++Ik+GkYLhy+VvAmvd J+YZzAHiZRUkr1W8ZavAnSNafZuDD4Gn+kOWGx9l/rOgHEWSi4scsn9yX0kjcmHV102AtP P5aoLEiEgGlmY4OmGD7ucICdAtzsyu4VtI/p+xPJ4gksYFe08PX2kVAyq28Y45vHCWTYXZ NOpNxDmB9quPLMdLElrOlC7YUyuU+HaAzEe4Z/k7lhe9lEXqqIwE8PevDkn7/w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1664684998; a=rsa-sha256; cv=none; b=tnHoy74FHS5estLALSwZSu0SIsbRBBGG9n/dI/Oj7/8OIg1//voOqLdRPS/mX5p+9thG6d HVyu4i/6qx2ewGeNYvun9ua3sacz3EFCikKfxm3XGHk9UzFum3S/p0wTfNmw2oymmeiz8o mwA3aufwuTX7sSb8SnXYVsUQ9u4bR7mWocqxANMELglY2YSB21L/HIHIqgXZmK5+K2oacZ GaStdaKqUdv8fHkpAoLHwDSPyxjMZmv/w7rhciXkm4TXUIpSNNDSA5hdqlfHcPv7TVnc4i 5K7y4NPVWSrxHQh7+Oa2cV8+qZRGGMCEBMld/Z+/fU8gPEpJwbYoDUezKyCNOg== 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=bbc76273173e9bdbb69c9c2212bb13643f3c6756 commit bbc76273173e9bdbb69c9c2212bb13643f3c6756 Author: Warner Losh AuthorDate: 2022-07-08 17:53:33 +0000 Commit: Warner Losh CommitDate: 2022-10-02 04:25:55 +0000 musb: eliminate write only variable sc Sponsored by: Netflix (cherry picked from commit ab59cd6a0b3bb00ef8101180eae54982090317a2) --- 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; /*