1
0
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:
Aleksandr Rybalko 2012-10-15 12:03:11 +00:00
parent 2543786a37
commit daa4deac71
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=241577

View File

@ -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;
} }