Bug 207855 - usr/src/sys/geom/vinum/geom_vinum_plex.c:173: bad assert ?
Summary: usr/src/sys/geom/vinum/geom_vinum_plex.c:173: bad assert ?
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
Depends on:
Reported: 2016-03-09 19:30 UTC by David Binderman
Modified: 2016-03-09 19:30 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
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)