summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>2001-07-03 01:42:21 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>2001-07-03 01:42:21 +0000
commitb1ddb46a3071d88d9009e71d376040e747870661 (patch)
tree707b187d01afd4cfe0f57923d4a088752c49611f /sys
parent555ae1cc960fd2127b199a0efca01ebe59e0cba6 (diff)
obvious typo in condition; csapuntz@ ok
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/atapiscsi/atapiscsi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/atapiscsi/atapiscsi.c b/sys/dev/atapiscsi/atapiscsi.c
index 048bcf497e2..c37c13f2d7d 100644
--- a/sys/dev/atapiscsi/atapiscsi.c
+++ b/sys/dev/atapiscsi/atapiscsi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: atapiscsi.c,v 1.46 2001/07/02 04:58:52 ho Exp $ */
+/* $OpenBSD: atapiscsi.c,v 1.47 2001/07/03 01:42:20 niklas Exp $ */
/*
* This code is derived from code with the copyright below.
@@ -287,7 +287,7 @@ atapiscsi_attach(parent, self, aux)
struct scsibus_softc *scsi = scsibus_cd.cd_devs[bus];
struct scsi_link *link = scsi->sc_link[0][0];
- if (!link) {
+ if (link) {
strncpy(drvp->drive_name,
((struct device *)(link->device_softc))->dv_xname,
sizeof(drvp->drive_name) - 1);