svn commit: r269690 - head/sys/dev/esp

Warner Losh imp at FreeBSD.org
Thu Aug 7 21:56:33 UTC 2014


Author: imp
Date: Thu Aug  7 21:56:32 2014
New Revision: 269690
URL: http://svnweb.freebsd.org/changeset/base/269690

Log:
  target is unsigned, so don't compare it < 0 for range test.

Modified:
  head/sys/dev/esp/ncr53c9x.c

Modified: head/sys/dev/esp/ncr53c9x.c
==============================================================================
--- head/sys/dev/esp/ncr53c9x.c	Thu Aug  7 21:37:31 2014	(r269689)
+++ head/sys/dev/esp/ncr53c9x.c	Thu Aug  7 21:56:32 2014	(r269690)
@@ -1082,8 +1082,7 @@ ncr53c9x_action(struct cam_sim *sim, uni
 
 	case XPT_RESET_DEV:
 	case XPT_SCSI_IO:
-		if (ccb->ccb_h.target_id < 0 ||
-		    ccb->ccb_h.target_id >= sc->sc_ntarg) {
+		if (ccb->ccb_h.target_id >= sc->sc_ntarg) {
 			ccb->ccb_h.status = CAM_PATH_INVALID;
 			goto done;
 		}


More information about the svn-src-head mailing list