[Bug 210709] freebsd/sys/dev/pcf/pcf_isa.c:112]: (style) Suspicious condition

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Jun 29 19:44:55 UTC 2016


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

            Bug ID: 210709
           Summary: freebsd/sys/dev/pcf/pcf_isa.c:112]: (style) Suspicious
                    condition
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: dcb314 at hotmail.com

freebsd/sys/dev/pcf/pcf_isa.c:112]: (style) Suspicious condition (assignment +
comparison); Clarify expression with parentheses.

Source code is

    if ((error = resource_int_value(PCF_NAME, 0, "port", &port) != 0))
        return (error);

Maybe better code

    if ((error = resource_int_value(PCF_NAME, 0, "port", &port)) != 0)
        return error;

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


More information about the freebsd-bugs mailing list