mirror of
https://github.com/opnsense/src.git
synced 2026-07-16 12:33:07 -04:00
sb16_probe: eliminate write only variable r
Sponsored by: Netflix
This commit is contained in:
parent
3a7365acc8
commit
668986eae9
1 changed files with 3 additions and 3 deletions
|
|
@ -788,14 +788,14 @@ static int
|
|||
sb16_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_SB16) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue