The branch main has been updated by christos:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=6f96ef84b359137a51dc1e717887ca7d31ba7bad

commit 6f96ef84b359137a51dc1e717887ca7d31ba7bad
Author:     Christos Margiolis <chris...@freebsd.org>
AuthorDate: 2024-10-18 08:41:55 +0000
Commit:     Christos Margiolis <chris...@freebsd.org>
CommitDate: 2024-10-18 08:41:55 +0000

    onyx: Remove unreachable if condition
    
    Both conditions are the same, so the second one is unreachable.
    
    PR:             229550
    Sponsored by:   The FreeBSD Foundation
    MFC after:      2 days
    Reviewed by:    andreast, markj
    Differential Revision:  https://reviews.freebsd.org/D47167
---
 sys/dev/sound/macio/onyx.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/sys/dev/sound/macio/onyx.c b/sys/dev/sound/macio/onyx.c
index 00c7b826f142..d13f3da92db6 100644
--- a/sys/dev/sound/macio/onyx.c
+++ b/sys/dev/sound/macio/onyx.c
@@ -197,7 +197,6 @@ onyx_probe(device_t dev)
        if (strcmp(name, "codec") == 0) {
                if (iicbus_get_addr(dev) != PCM3052_IICADDR)
                        return (ENXIO);
-       } else if (strcmp(name, "codec") == 0) {
                compat = ofw_bus_get_compat(dev);
                if (compat == NULL || strcmp(compat, "pcm3052") != 0)
                        return (ENXIO);

Reply via email to