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

            Bug ID: 207856
           Summary: usr/src/sys/geom/vinum/geom_vinum_raid5.c: 2 * bad
                    test ?
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: [email protected]
          Reporter: [email protected]

1.

usr/src/sys/geom/vinum/geom_vinum_raid5.c:602]: (style) A pointer can not be
negative so it is either pointless or an error to check if it is not.

source code is

    KASSERT(psdno >= 0, ("gv_raid5_offset: psdno < 0"));

but

gv_raid5_offset(struct gv_plex *p, off_t boff, off_t bcount, off_t *real_off,
    off_t *real_len, int *sdno, int *psdno, int growing)

2.

usr/src/sys/geom/vinum/geom_vinum_raid5.c:610]: (style) A pointer can not be
negative so it is either pointless or an error to check if it is not.

Source code is

    KASSERT(sdno >= 0, ("gv_raid5_offset: sdno < 0"));

Duplicate.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to