mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
emu_midi_probe: eliminate write only variable r
Sponsored by: Netflix
This commit is contained in:
parent
33985865b2
commit
7387abd342
1 changed files with 3 additions and 3 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in a new issue