diff options
| author | bouyer <bouyer@NetBSD.org> | 2006-11-22 17:49:12 +0000 |
|---|---|---|
| committer | bouyer <bouyer@NetBSD.org> | 2006-11-22 17:49:12 +0000 |
| commit | dcf3bce253a64569163115ea225304fa03e9b43f (patch) | |
| tree | 5419ed4b79dec4c844adc9a2ed58a1be955e75f2 /sys/dev/ata | |
| parent | 7420eb145ad14085ceb23b92aa21c6878393ca2b (diff) | |
In sata_reset_interface() return only DET bits of SStatus, as the
return value is compared against SStatus_DET_*
Diffstat (limited to 'sys/dev/ata')
| -rw-r--r-- | sys/dev/ata/sata_subr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ata/sata_subr.c b/sys/dev/ata/sata_subr.c index 638d89ec1ac..7767ff858f3 100644 --- a/sys/dev/ata/sata_subr.c +++ b/sys/dev/ata/sata_subr.c @@ -1,4 +1,4 @@ -/* $NetBSD: sata_subr.c,v 1.3 2006/11/20 23:42:21 bouyer Exp $ */ +/* $NetBSD: sata_subr.c,v 1.4 2006/11/22 17:49:12 bouyer Exp $ */ /*- * Copyright (c) 2004 The NetBSD Foundation, Inc. @@ -137,5 +137,5 @@ sata_reset_interface(struct ata_channel *chp, bus_space_tag_t sata_t, chp->ch_atac->atac_dev.dv_xname, chp->ch_channel, sstatus); } - return(sstatus); + return(sstatus & SStatus_DET_mask); } |
