git: 62ec1f05fa9e - stable/13 - emu_midi_probe: eliminate write only variable r
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 02 Oct 2022 04:29:50 UTC
The branch stable/13 has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=62ec1f05fa9ee1b57db585fda7548a60ce99c1ee
commit 62ec1f05fa9ee1b57db585fda7548a60ce99c1ee
Author: Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-07-08 17:53:32 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-10-02 04:25:54 +0000
emu_midi_probe: eliminate write only variable r
Sponsored by: Netflix
(cherry picked from commit 7387abd342a181bcf278949e22f09ebc25ed00ae)
---
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");