From 3d5e60cb6eab805d953438c71466c2e19a7d435d Mon Sep 17 00:00:00 2001 From: Pawel Jakub Dawidek Date: Tue, 4 Apr 2006 22:30:12 +0000 Subject: [PATCH] Don't call bfe_release_resources() twice. Found by: Coverity Prevent analysis tool CID: 600 MFC after: 1 week --- sys/dev/bfe/if_bfe.c | 2 -- 1 file changed, 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; }