From nobody Tue Apr 05 04:32:39 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 22FFF1A9177E; Tue, 5 Apr 2022 04:32:40 +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 4KXZWC6g0wz4gN9; Tue, 5 Apr 2022 04:32:39 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649133160; 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=9Qf6ab0jUbGSc7advoQu8Gcw0KL20h3B4cJ4wWaf2B8=; b=DZlAg/PMVwklQlZIOdXbWtTEhYlQcE9T4YwgvhA2xeOyawhu+YeOAAGDifNn8q6r8VLofV 8RHFhC0gYI0MEvOsVEPSZOyAeSTF6nZ/caskRx3a+699FHOpgLkm2v1RkN3bCFUS21Nkqa EoRT41GGKRJN2WlazgbJHTtMZ7V7ZMH01zASTEiAhoZAJXzUlQNhbW4Eh85e0ti9mUEuUh NIv9edZ8cW0WmpXcSd2VNWG4p7VwZjrGx1yiNNrnVmJE2hbh5K3ud4GzXK8infMLfndbPZ ob6aZk0E7/yT9hEQ71FMAqvB4RhWQCSz1HEiqw4M/QQi1sRGr2Lfj/dUfyXy6Q== 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 97B3C1FAE6; Tue, 5 Apr 2022 04:32:39 +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 2354Wdju009285; Tue, 5 Apr 2022 04:32:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2354WdeD009284; Tue, 5 Apr 2022 04:32:39 GMT (envelope-from git) Date: Tue, 5 Apr 2022 04:32:39 GMT Message-Id: <202204050432.2354WdeD009284@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: 33985865b2d8 - main - 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/main X-Git-Reftype: branch X-Git-Commit: 33985865b2d8eafc9fc1d065dc06344c9c95c56c Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649133160; 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=9Qf6ab0jUbGSc7advoQu8Gcw0KL20h3B4cJ4wWaf2B8=; b=m1uovktW5lugn1R4NHXc3LgrXtkLrhaXPEkRrd/0UW35yGVhypVrj1o8UuLp/MNZnhrrfo zgJBVbiSgvNAcRlZUqEpkJXzz3A2/5ru9N0+ETvDFwoIgHjDtEPoLVAtaJifFIaEgsIKtZ maQjDDyQT/Wg1OAkaV8qP2WSlVpKCD6wzxI3csbhGs3FZi/KEqSge0Nq2eN28AumCOX2mC l70AmfcKBaN2CYfpdKWNKAbd94x3wBsfrBw76IIFxUSI3UH9VKx88ObDYr0Ap0mpuUK5jT X5YiFtd/gKcXrCZeozv8DCXjmLXmlKP8CJ7N6t6nOJUApPNpfI3MvRsyUL/qfg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649133160; a=rsa-sha256; cv=none; b=FZTRGJ3CGNUZVXLRT44JCsMenHqG82bohYEBk1b8F47vufIEjAiRPDOkOG+KNbNbVMjUnn RrPjMXMOtqFzdtqrC/ywEyGhHIisDJ1ykz2X+miIB45WHKcdKqcde4oprdgdN8ra85dUGw h/Vriw1/h7lgXu1KbnSRWzc4fg2Z9gl49LjXXgbOKvmgx1Zr8YtAYRZzHmhfUQeOnmwztI 2kjgyTLLSypYRNy4Gt+vQiYGfn6tqJr//SHYC9VslPl3ArsSkBVkwaMQYZM7RlRXVCzjyI Q0EKRuLgiEsjVmeytOkqWIYzNctYKYhYafZFveRUV6mRfrKpHF5KK2VYNVLq2Q== 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=33985865b2d8eafc9fc1d065dc06344c9c95c56c commit 33985865b2d8eafc9fc1d065dc06344c9c95c56c Author: Warner Losh AuthorDate: 2022-04-05 02:17:30 +0000 Commit: Warner Losh CommitDate: 2022-04-05 04:30:07 +0000 pcmcsa_attach: eliminate write only variable unit Sponsored by: Netflix --- 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 7fd55291d876..e71821a50c6a 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; /*