Bug 207855

Summary: usr/src/sys/geom/vinum/geom_vinum_plex.c:173: bad assert ?
Product: Base System Reporter: David Binderman <dcb314>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: New ---    
Severity: Affects Only Me    
Priority: ---    
Version: CURRENT   
Hardware: Any   
OS: Any   

Description David Binderman 2016-03-09 19:30:42 UTC
usr/src/sys/geom/vinum/geom_vinum_plex.c:173]: (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_plex_offset: sdno < 0"));


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