Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 06 Sep 2001 13:06:04 -0600
From:      "Justin T. Gibbs" <gibbs@scsiguy.com>
To:        "Lars =?iso-8859-1?Q?K=F6ller?=" <LKoeller@cc.fh-lippe.de>
Cc:        "Kenneth D. Merry" <ken@plutotech.com>, freebsd-scsi@FreeBSD.ORG
Subject:   Re: Wire of SCSI devices gives warning messages 
Message-ID:  <200109061906.f86J64Y78966@aslan.scsiguy.com>
In-Reply-To: Your message of "Thu, 06 Sep 2001 20:19:01 %2B0200." <200109061819.f86IJ1f01094@odie.lippe.de> 

next in thread | previous in thread | raw e-mail | index | archive | help
>
>Hi!
>
>No. it doesn't help, with this patch more devices and every 

Hit needs to be initialized to 0 both inside and outside the loop
or if you wanted to only do it once (but in a somewhat obfuscated way):

	while (hit = 0 && (i = resource_locate(i, periph_name)) != -1) {

		...

	}

Sorry for not looking at the code more closely when writing the patch.

--
Justin

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-scsi" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200109061906.f86J64Y78966>