From nobody Sun Oct 02 04:29:49 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 4Mg9ws4mdcz4dtJx; Sun, 2 Oct 2022 04:29: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 4Mg9ws3n72z45ZB; Sun, 2 Oct 2022 04:29:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664684989; 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=LB8/qG31eBAcOVNIX8SDa+D73Wd92DNv7Qo2HD0EFfw=; b=XhkXda68pJv+Sy20ccUSjGTZaVnfu1sE6O9r8aWdE/HcTdReo0/RrevIn5yN0FimfEAm4T 53A075wLysX2DlePRdsZSPcmmJYeBikGgks7qjHI+FgBZMRDjP9JdN23amurLNHm0f6F1I OHA1dJa/z3K62VVuAxNm2SDGXdpvlNjxx0xbr2c1NvrzdC0gVRl93a+I7SW4PyoZa+WKug 0C1qdiLEr2lmxSDs0l1Dts57+Qw2bjriDDTLFe3Mmgbg7d82lOtdAynaE8oJc2yHtPFRS6 gxbQmx8OZEMVmgfb9Oe98PStqLzLJfVYXV6Q140mizMUjnLThq+7wTW/3dl9Bw== 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 4Mg9ws2qBQzlTc; Sun, 2 Oct 2022 04:29:49 +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 2924Tn1P058698; Sun, 2 Oct 2022 04:29:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2924Tn4N058697; Sun, 2 Oct 2022 04:29:49 GMT (envelope-from git) Date: Sun, 2 Oct 2022 04:29:49 GMT Message-Id: <202210020429.2924Tn4N058697@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: eaa861ec1075 - stable/13 - pcmcsa_attach: eliminate write only variable unit 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: eaa861ec1075e71d74dfcee91e7f02dbea1bd750 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664684989; 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=LB8/qG31eBAcOVNIX8SDa+D73Wd92DNv7Qo2HD0EFfw=; b=p4lLa71DmaBHJwNJeZoniG3VXdqGG6kZFrcoUtw6qpbkq0mutG6jUt2tKWNfBEJpZFrJi0 kBVRtd5zPXVdLLMTxuOrLC1OBL9kpHZEWAVBNtDwovXrJQM81Ly7IIc22IkvXoQUolvl0S YwUOKEf7Ba+cibLCzypjpPmUGGlTug+eEoZpro5GVzlC5ObCK62lnPZcIEPe0yfKrEILs7 z6aVRWPLNSGEoWEb/IUN8GpS2HXf2twrG7VD7euJCXgBpCZLzEqlJjj2MDKIzXV4ze1K9g EwYhC/ytls1TerWtSbBoa3O2+OUjyctCrwfpR2+gE7E8VV7ZLWB3qBroMysQUw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1664684989; a=rsa-sha256; cv=none; b=JxbTepvRjuWK7HSmTfwSIxD+6siGZX7Udzik7A+sxVB4kyinjEkLzwmXaxMvScvGtwl6kJ Am83/ar+AwxE5fdJQX3lEIF9FO86wrLG8gC8RQwq0Nlr4x4gKa1KdbNZBDFNJ+CORU+xS0 avqalcbMjkYB8fWhBXDVg3vOJMILzziQ0tzT4ZO/6oYhVerBoYGAf6XZWVPsQmvbbNrHcQ Z/ALneXsITO5XNLPpczoHnv4fv7NmSIGLXAosPTNO3v4zjNA+3MQMMaS2jH3ZmW8CdzC7+ 0hF0RyftNKPZ8sGWbecO4P1x7EF++2DbFVRvMH05/dlSfapZo3epO1qecU4yPw== 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=eaa861ec1075e71d74dfcee91e7f02dbea1bd750 commit eaa861ec1075e71d74dfcee91e7f02dbea1bd750 Author: Warner Losh AuthorDate: 2022-07-08 17:53:32 +0000 Commit: Warner Losh CommitDate: 2022-10-02 04:25:54 +0000 pcmcsa_attach: eliminate write only variable unit Sponsored by: Netflix (cherry picked from commit 33985865b2d8eafc9fc1d065dc06344c9c95c56c) --- sys/dev/sound/pci/csapcm.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/dev/sound/pci/csapcm.c b/sys/dev/sound/pci/csapcm.c index a0b35c909931..41500e46e66d 100644 --- a/sys/dev/sound/pci/csapcm.c +++ b/sys/dev/sound/pci/csapcm.c @@ -777,13 +777,11 @@ pcmcsa_attach(device_t dev) { struct csa_info *csa; csa_res *resp; - int unit; char status[SND_STATUSLEN]; struct ac97_info *codec; struct sndcard_func *func; csa = malloc(sizeof(*csa), M_DEVBUF, M_WAITOK | M_ZERO); - unit = device_get_unit(dev); func = device_get_ivars(dev); csa->binfo = func->varinfo; /*