aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/dpt
diff options
context:
space:
mode:
authorSam Leffler <sam@FreeBSD.org>2005-02-24 02:03:55 +0000
committerSam Leffler <sam@FreeBSD.org>2005-02-24 02:03:55 +0000
commitc2235096d7615219059d5c2652b5eaf94de49318 (patch)
treefde96d8eac3efab63e309c8640108e7cc9a68540 /sys/dev/dpt
parent87ace10fd79f15d79ae4e6e53e398fef70c1745b (diff)
Notes
Diffstat (limited to 'sys/dev/dpt')
-rw-r--r--sys/dev/dpt/dpt_pci.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/dpt/dpt_pci.c b/sys/dev/dpt/dpt_pci.c
index 7385215ae263..a3fa41ba280f 100644
--- a/sys/dev/dpt/dpt_pci.c
+++ b/sys/dev/dpt/dpt_pci.c
@@ -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);
}