diff options
author | Pawel Jakub Dawidek <pjd@FreeBSD.org> | 2006-04-04 22:30:12 +0000 |
---|---|---|
committer | Pawel Jakub Dawidek <pjd@FreeBSD.org> | 2006-04-04 22:30:12 +0000 |
commit | 3d5e60cb6eab805d953438c71466c2e19a7d435d (patch) | |
tree | 1379da32f287da1a920a2233be7d5dff5514033f /sys/dev/bfe/if_bfe.c | |
parent | 0dc487341e352e2ac9f3c15459d751a4424ecf6e (diff) | |
download | src-3d5e60cb6eab805d953438c71466c2e19a7d435d.tar.gz src-3d5e60cb6eab805d953438c71466c2e19a7d435d.zip |
Don't call bfe_release_resources() twice.
Found by: Coverity Prevent analysis tool
CID: 600
MFC after: 1 week
Notes
Notes:
svn path=/head/; revision=157518
Diffstat (limited to 'sys/dev/bfe/if_bfe.c')
-rw-r--r-- | sys/dev/bfe/if_bfe.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/dev/bfe/if_bfe.c b/sys/dev/bfe/if_bfe.c index 328f4dc401f3..4eec5123c9c4 100644 --- a/sys/dev/bfe/if_bfe.c +++ b/sys/dev/bfe/if_bfe.c @@ -366,7 +366,6 @@ bfe_attach(device_t dev) if (bfe_dma_alloc(dev)) { printf("bfe%d: failed to allocate DMA resources\n", sc->bfe_unit); - bfe_release_resources(sc); error = ENXIO; goto fail; } @@ -421,7 +420,6 @@ bfe_attach(device_t dev) bfe_intr, sc, &sc->bfe_intrhand); if (error) { - bfe_release_resources(sc); printf("bfe%d: couldn't set up irq\n", unit); goto fail; } |