From 470f59fa3f11b7317fc5907cfef6043f2104bcc6 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Thu, 7 Apr 2011 15:30:17 +0000 Subject: Do not use NULL in integer comparisons. No functional change. ok matthew@ tedu@, also eyeballed by at least krw@ oga@ kettenis@ jsg@ --- sys/scsi/sd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/scsi/sd.c') diff --git a/sys/scsi/sd.c b/sys/scsi/sd.c index 79f734fb3e3..e2832edb209 100644 --- a/sys/scsi/sd.c +++ b/sys/scsi/sd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sd.c,v 1.223 2011/04/07 00:05:18 krw Exp $ */ +/* $OpenBSD: sd.c,v 1.224 2011/04/07 15:30:16 miod Exp $ */ /* $NetBSD: sd.c,v 1.111 1997/04/02 02:29:41 mycroft Exp $ */ /*- @@ -737,7 +737,7 @@ sdstart(struct scsi_xfer *xs) /* move onto the next io */ if (ISSET(sc->flags, SDF_WAITING)) CLR(sc->flags, SDF_WAITING); - else if (bufq_peek(&sc->sc_bufq) != NULL) + else if (bufq_peek(&sc->sc_bufq)) scsi_xsh_add(&sc->sc_xsh); } -- cgit v1.2.3