Re: svn commit: r329866 - head/sys/cam

2018-02-23 Thread Ian Lepore
On Fri, 2018-02-23 at 16:06 +, Warner Losh wrote: > -static inline int > +static inline bool >  cam_iosched_has_flagged_work(struct cam_iosched_softc *isc) >  { > return !!(isc->flags & CAM_IOSCHED_FLAG_WORK_FLAGS); >  } There should be no need for the ugly !! here, conversion to bool

svn commit: r329866 - head/sys/cam

2018-02-23 Thread Warner Losh
Author: imp Date: Fri Feb 23 16:06:54 2018 New Revision: 329866 URL: https://svnweb.freebsd.org/changeset/base/329866 Log: Use bool instead of int for predicate functions relating to work available. Modified: head/sys/cam/cam_iosched.c Modified: head/sys/cam/cam_iosched.c