sb_probe: eliminate write only variable r
Sponsored by: Netflix
This commit is contained in:
parent
668986eae9
commit
635a4068d2
@ -691,14 +691,14 @@ static int
|
||||
sb_probe(device_t dev)
|
||||
{
|
||||
char buf[64];
|
||||
uintptr_t func, ver, r, f;
|
||||
uintptr_t func, ver, f;
|
||||
|
||||
/* The parent device has already been probed. */
|
||||
r = BUS_READ_IVAR(device_get_parent(dev), dev, 0, &func);
|
||||
BUS_READ_IVAR(device_get_parent(dev), dev, 0, &func);
|
||||
if (func != SCF_PCM)
|
||||
return (ENXIO);
|
||||
|
||||
r = BUS_READ_IVAR(device_get_parent(dev), dev, 1, &ver);
|
||||
BUS_READ_IVAR(device_get_parent(dev), dev, 1, &ver);
|
||||
f = (ver & 0xffff0000) >> 16;
|
||||
ver &= 0x0000ffff;
|
||||
if ((f & BD_F_ESS) || (ver >= 0x400))
|
||||
|
Loading…
x
Reference in New Issue
Block a user