git: 7387abd342a1 - main - emu_midi_probe: eliminate write only variable r

From: Warner Losh <imp_at_FreeBSD.org>
Date: Tue, 05 Apr 2022 04:32:40 UTC
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=7387abd342a181bcf278949e22f09ebc25ed00ae

commit 7387abd342a181bcf278949e22f09ebc25ed00ae
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-04-05 02:18:10 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
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");