[Bug 229550] src/sys/dev/sound/macio/onyx.c:203: bad if ?

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Jul 5 20:24:29 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229550

            Bug ID: 229550
           Summary: src/sys/dev/sound/macio/onyx.c:203: bad if ?
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs at FreeBSD.org
          Reporter: dcb314 at hotmail.com

src/sys/dev/sound/macio/onyx.c:203]: (style) Expression is always false because
'else if' condition matches previous condition at line 200.

Source code is

       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);

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list