o nuke duplicate call of dpt_free when dpt_init fails

o nuke gratuitous null ptr check; softc can never be null in this routine

Noticed by:	Coverity Prevent analysis tool
Reviewed by:	mdodd
This commit is contained in:
sam 2005-02-24 02:03:55 +00:00
parent 361f2ee16d
commit 0cc0296750

View File

@ -156,7 +156,6 @@ dpt_pci_attach (device_t dev)
s = splcam();
if (dpt_init(dpt) != 0) {
dpt_free(dpt);
error = ENXIO;
goto bad;
}
@ -178,8 +177,7 @@ dpt_pci_attach (device_t dev)
bad:
dpt_release_resources(dev);
if (dpt)
dpt_free(dpt);
dpt_free(dpt);
return (error);
}