[Bug 201284] sys/fs/tmpfs/tmpfs_subr.c: 2 * bad if statements ?

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Jul 2 16:09:27 UTC 2015


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

            Bug ID: 201284
           Summary: sys/fs/tmpfs/tmpfs_subr.c: 2 * bad if statements ?
           Product: Base System
           Version: 10.1-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: misc
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: dcb314 at hotmail.com

1.

sys/fs/tmpfs/tmpfs_subr.c:1691]: (style) Same expression on both sides of '&&'.

  if (vap->va_birthtime.tv_nsec != VNOVAL &&
        vap->va_birthtime.tv_nsec != VNOVAL)

Looking at nearby code, maybe

  if (vap->va_birthtime.tv_sec != VNOVAL &&
        vap->va_birthtime.tv_nsec != VNOVAL)

2.

sys/fs/tmpfs/tmpfs_subr.c:1697]: (style) Same expression on both sides of '&&'.

Same thing a few lines further down.

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


More information about the freebsd-bugs mailing list