Fix 0 / NULL mixup (this module isn't in LINT!)
This commit is contained in:
parent
d6b24acdbf
commit
afb40a1dc3
@ -2282,7 +2282,7 @@ fatm_open_vcc(struct fatm_softc *sc, struct atmio_openvcc *op)
|
||||
sc->open_vccs++;
|
||||
|
||||
error = fatm_load_vc(sc, vc);
|
||||
if (error != NULL) {
|
||||
if (error != 0) {
|
||||
sc->vccs[op->param.vci] = NULL;
|
||||
sc->open_vccs--;
|
||||
goto done;
|
||||
|
Loading…
Reference in New Issue
Block a user