The branch main has been updated by mav:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=541699f6f69c2ba196386c31107b0159457013c2

commit 541699f6f69c2ba196386c31107b0159457013c2
Author:     Alexander Motin <[email protected]>
AuthorDate: 2021-09-04 20:10:50 +0000
Commit:     Alexander Motin <[email protected]>
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);
        }
 
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to