Fix 0 / NULL mixup (this module isn't in LINT!)
This commit is contained in:
parent
ab99f13b16
commit
191c07211b
@ -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