Date: Sat, 4 Sep 2021 20:13:07 GMT From: Alexander Motin <mav@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 541699f6f69c - main - Remove impossible checks. Message-ID: <202109042013.184KD7dY068679@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by mav: URL: https://cgit.FreeBSD.org/src/commit/?id=541699f6f69c2ba196386c31107b0159457013c2 commit 541699f6f69c2ba196386c31107b0159457013c2 Author: Alexander Motin <mav@FreeBSD.org> AuthorDate: 2021-09-04 20:10:50 +0000 Commit: Alexander Motin <mav@FreeBSD.org> CommitDate: 2021-09-04 20:10:50 +0000 Remove impossible checks. --- sys/dev/sound/pci/maestro.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/sys/dev/sound/pci/maestro.c b/sys/dev/sound/pci/maestro.c index 0d55e1227b9a..ed1c9ef1cad6 100644 --- a/sys/dev/sound/pci/maestro.c +++ b/sys/dev/sound/pci/maestro.c @@ -1776,11 +1776,6 @@ agg_attach(device_t dev) mtx_init(&ess->lock, device_get_desc(dev), "snd_maestro softc", MTX_DEF | MTX_RECURSE); - if (!mtx_initialized(&ess->lock)) { - device_printf(dev, "failed to create a mutex.\n"); - ret = ENOMEM; - goto bad; - } if (resource_int_value(device_get_name(dev), device_get_unit(dev), "dac", &dacn) == 0) { @@ -1929,8 +1924,7 @@ agg_attach(device_t dev) bus_dma_tag_destroy(ess->stat_dmat); if (ess->buf_dmat != NULL) bus_dma_tag_destroy(ess->buf_dmat); - if (mtx_initialized(&ess->lock)) - mtx_destroy(&ess->lock); + mtx_destroy(&ess->lock); free(ess, M_DEVBUF); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202109042013.184KD7dY068679>