summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2006-11-04 06:03:52 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2006-11-04 06:03:52 +0000
commita387774866c0c4345d3efd935c96d070df0bc716 (patch)
tree1b6cd1b8689ad3f3fa954a732e2830f1a2cca49c /sys
parent85ec1a988829b6aa6297a203ce10390ee337c223 (diff)
kthread_create returns an int, not a pointer. compare the return value to
0, not NULL.
Diffstat (limited to 'sys')
-rw-r--r--sys/scsi/scsi_base.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/scsi/scsi_base.c b/sys/scsi/scsi_base.c
index a9965fb8f2d..3cc1e309f18 100644
--- a/sys/scsi/scsi_base.c
+++ b/sys/scsi/scsi_base.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: scsi_base.c,v 1.113 2006/09/22 00:33:41 dlg Exp $ */
+/* $OpenBSD: scsi_base.c,v 1.114 2006/11/04 06:03:51 dlg Exp $ */
/* $NetBSD: scsi_base.c,v 1.43 1997/04/02 02:29:36 mycroft Exp $ */
/*
@@ -123,7 +123,7 @@ scsi_deinit()
void
scsi_create_task_thread(void *arg)
{
- if (kthread_create(scsi_task_thread, NULL, NULL, "scsi") != NULL)
+ if (kthread_create(scsi_task_thread, NULL, NULL, "scsi") != 0)
panic("unable to create scsi task thread");
}