mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-20 11:11:24 +00:00
Defaulting to id "0" if ar7240_probe(dev) success, fix warning when building
with DEBUG. Submitted by: Luiz Otavio O Souza Approved by: adrian (mentor)
This commit is contained in:
parent
2543786a37
commit
daa4deac71
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=241577
@ -102,6 +102,7 @@ arswitch_probe(device_t dev)
|
|||||||
if (ar7240_probe(dev) == 0) {
|
if (ar7240_probe(dev) == 0) {
|
||||||
chipname = "AR7240";
|
chipname = "AR7240";
|
||||||
sc->sc_switchtype = AR8X16_SWITCH_AR7240;
|
sc->sc_switchtype = AR8X16_SWITCH_AR7240;
|
||||||
|
id = 0;
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user