diff options
author | Warner Losh <imp@FreeBSD.org> | 2022-07-08 17:53:32 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2022-10-02 04:25:54 +0000 |
commit | 62ec1f05fa9ee1b57db585fda7548a60ce99c1ee (patch) | |
tree | 4e536f91e0f8684d669bb47ccdebb3f4f0dd0ecd | |
parent | eaa861ec1075e71d74dfcee91e7f02dbea1bd750 (diff) |
emu_midi_probe: eliminate write only variable r
Sponsored by: Netflix
(cherry picked from commit 7387abd342a181bcf278949e22f09ebc25ed00ae)
-rw-r--r-- | sys/dev/sound/pci/emu10kx-midi.c | 6 |
1 files 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"); |