From nobody Tue Apr 05 04:32:40 2022 X-Original-To: dev-commits-src-main@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 DBF201A919D7; Tue, 5 Apr 2022 04:32:42 +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 4KXZWF0cdbz4gXn; Tue, 5 Apr 2022 04:32:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649133162; 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=ThLC8zsT46I0PxROzlcCt4MXzf4VjG1Uf0p81ZxC0NE=; b=TbCUYX8e0XshininxzB0WHhAexr+26agf2elMOL3HUp//AC4ufzPgNWABluxRJdwibMHMa J5R38L7vhI6zZ0b3lVaE3Ft4+7M+0MSHHjfkFqG5Ba0sjF8UMCXRMoi5F2PGFmCUmc7cLb sJ7PBxcgqx0u0g9IMsVZD9cb1dO69ADoTpxTsOMMPfrz5PsUGt/dPzbqjI8kk5nQs00rxz xjOHV8VZ5vIzs0vOIiK18vzRUxypPEq0ZdPNwSjBKiPTzIj+GnLgBshtZYG6t4yVglOI0u C1rhtjwN9bj8nW8/r+7FY1iy5+lib0tgRGiCNGpPIhT2c4s0X1+UYExwkZayVg== 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 A624C1FAE7; Tue, 5 Apr 2022 04:32:40 +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 2354WeWn009315; Tue, 5 Apr 2022 04:32:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2354Werc009314; Tue, 5 Apr 2022 04:32:40 GMT (envelope-from git) Date: Tue, 5 Apr 2022 04:32:40 GMT Message-Id: <202204050432.2354Werc009314@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: 7387abd342a1 - main - emu_midi_probe: eliminate write only variable r List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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: 7387abd342a181bcf278949e22f09ebc25ed00ae Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649133162; 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=ThLC8zsT46I0PxROzlcCt4MXzf4VjG1Uf0p81ZxC0NE=; b=naOoA9lP5Lxlc2Ngc8fa1DisKULKD1nwc7mwHRbQURs9Yr8kuf3GNKQb+GhQb2u47EG+oJ xzJRO9YhQkcr8j64e2+E4wDZn/G3XTl/VXGLVHBFX81j91AnCgb4X/fSGrZ0+TcQe/iJma Y1hXCynH1HfRQN2yS7HKnHGbh2q+x12BeXCXpoSsXYEXBBpzucynruK/+TTv/NQCo4pcZr zacQUVxrRDysnlLUOwiy/sq49PsBN4YI1DMfe6kw9mNrM1yvg2cXCdBu57Gji5hp+l3xw+ CEyT1q4IsDkPlYzMYEnz4o+mnxxtSb6oYP/RoS6+28by7zbUN54RKzqK3/l2LQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649133162; a=rsa-sha256; cv=none; b=g0VPLzl1AH6U3ttnrLwIckeHc3WOhJItQcb8nP7+qv5e6u8uTiFKaa0JCc503g94W/nuZ4 E+A2VE/ErazCNSf1wpZZnM4+F9TEaihz0j+8PR2S3JGX4qTEUDbdTG27GIi3pmy0rmqHlV tqdd/xnGR5IxmdeAndJNt52SvzMtVzVgEv98LBQqS8zo6LviNHIDjuOVeblHRvAqEiatep JHihdQ78PFgeLyDWdpLA82XN7SUDhE4ZcUmUavctcGD0fQLn05x3k68rc990xfj/B4JeR4 w6iuKi6ay3URU5zfZA4k/o/puqxlveJAlWjDrW6gbtXs9JkGhdR821JhNpZtbA== 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=7387abd342a181bcf278949e22f09ebc25ed00ae commit 7387abd342a181bcf278949e22f09ebc25ed00ae Author: Warner Losh AuthorDate: 2022-04-05 02:18:10 +0000 Commit: Warner Losh CommitDate: 2022-04-05 04:30:09 +0000 emu_midi_probe: eliminate write only variable r Sponsored by: Netflix --- sys/dev/sound/pci/emu10kx-midi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/sound/pci/emu10kx-midi.c b/sys/dev/sound/pci/emu10kx-midi.c index e00a850a66e2..a458b6993c08 100644 --- a/sys/dev/sound/pci/emu10kx-midi.c +++ b/sys/dev/sound/pci/emu10kx-midi.c @@ -142,15 +142,15 @@ static int emu_midi_probe(device_t dev) { struct emu_midi_softc *scp; - uintptr_t func, r, is_emu10k1; + uintptr_t func, is_emu10k1; - r = BUS_READ_IVAR(device_get_parent(dev), dev, 0, &func); + BUS_READ_IVAR(device_get_parent(dev), dev, 0, &func); if (func != SCF_MIDI) return (ENXIO); scp = device_get_softc(dev); bzero(scp, sizeof(*scp)); - r = BUS_READ_IVAR(device_get_parent(dev), dev, EMU_VAR_ISEMU10K1, &is_emu10k1); + BUS_READ_IVAR(device_get_parent(dev), dev, EMU_VAR_ISEMU10K1, &is_emu10k1); scp->is_emu10k1 = is_emu10k1 ? 1 : 0; device_set_desc(dev, "EMU10Kx MIDI Interface");