From: dlg Date: Tue, 22 Jul 2008 00:40:37 +0000 (+0000) Subject: tweak comment to reflect the new reality after my last change. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=114dc81ee2f38558efb9c4a3be54ff4ca89e1cd1;p=openbsd tweak comment to reflect the new reality after my last change. --- diff --git a/sys/scsi/scsiconf.c b/sys/scsi/scsiconf.c index d6be80bd48a..4ed8783ce40 100644 --- a/sys/scsi/scsiconf.c +++ b/sys/scsi/scsiconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: scsiconf.c,v 1.133 2008/07/21 23:40:03 dlg Exp $ */ +/* $OpenBSD: scsiconf.c,v 1.134 2008/07/22 00:40:37 dlg Exp $ */ /* $NetBSD: scsiconf.c,v 1.57 1996/05/02 01:09:01 neil Exp $ */ /* @@ -842,12 +842,12 @@ scsi_probedev(struct scsibus_softc *scsi, int target, int lun) * Braindead USB devices, especially some x-in-1 media readers, try to * 'help' by pretending any LUN is actually LUN 0 until they see a * different LUN used in a command. So do an INQUIRY on LUN 1 at this - * point (since we are done with the data in inqbuf) to prevent such - * helpfulness before it causes confusion. + * point to prevent such helpfulness before it causes confusion. */ if (lun == 0 && (sc_link->flags & SDEV_UMASS) && scsi->sc_link[target][1] == NULL && sc_link->luns > 1) { struct scsi_inquiry_data tmpinq; + sc_link->lun = 1; scsi_inquire(sc_link, &tmpinq, scsi_autoconf | SCSI_SILENT); sc_link->lun = 0;