mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-21 01:03:42 +00:00
Fix 0 / NULL mixup (this module isn't in LINT!)
This commit is contained in:
parent
ab99f13b16
commit
191c07211b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=123798
|
@ -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 a new issue