]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Remove check to see if the get resource for the second resource
authorWarner Losh <imp@FreeBSD.org>
Fri, 27 Jun 2003 03:25:43 +0000 (03:25 +0000)
committerWarner Losh <imp@FreeBSD.org>
Fri, 27 Jun 2003 03:25:43 +0000 (03:25 +0000)
commit60c64b939b3b2ad9a74eb1689758d535bd4de796
treeb4cfbef0f5bcde90bcb39b019b006167b0fe012e
parentc032abb5956d470bea345d0703d9426f091d74fd
Remove check to see if the get resource for the second resource
succeeds.  There is a difference between how OLDCARD and NEWCARD deal
with their resources, and this code exposes that difference.  I'm not
sure which behavior is correct, and will need to look into that in
more detail.  However, it appears that we go ahead and allocate the
right thing in both cases that I have access to (CF cards, CDROM, and
external ata enclosures), so go ahead and ignore the failure to get
the resource for the other rid.  There's already another check to make
sure that the actual allocation works correctly, and that should be
sufficient to catch cases that don't work.

Submitted by: wpaul and iedowse
sys/dev/ata/ata-card.c