- Break after nested switch.
- Default returns an error.
This commit is contained in:
parent
5b9c896ccd
commit
96a205962e
@ -663,6 +663,7 @@ fddi_ioctl (ifp, command, data)
|
||||
ifp->if_init(ifp->if_softc);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case SIOCGIFADDR: {
|
||||
struct sockaddr *sa;
|
||||
|
||||
@ -683,6 +684,7 @@ fddi_ioctl (ifp, command, data)
|
||||
}
|
||||
break;
|
||||
default:
|
||||
error = EINVAL;
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user