summaryrefslogtreecommitdiffstats
path: root/sys/dev/ata/ata-disk.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/ata/ata-disk.c')
-rw-r--r--sys/dev/ata/ata-disk.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/sys/dev/ata/ata-disk.c b/sys/dev/ata/ata-disk.c
index 9801c25..fc15ae2 100644
--- a/sys/dev/ata/ata-disk.c
+++ b/sys/dev/ata/ata-disk.c
@@ -203,14 +203,10 @@ ad_attach(struct ata_device *atadev)
ata_enclosure_print(atadev);
- /* if this disk belongs to an ATA RAID dont print the probe */
- if (ata_raiddisk_attach(adp))
- adp->flags |= AD_F_RAID_SUBDISK;
- else {
- if (atadev->driver) {
+ /* only print probe banner if we are not part of a RAID array */
+ if (!ata_raiddisk_attach(adp))
+ if (atadev->driver)
ad_print(adp);
- }
- }
}
void
OpenPOWER on IntegriCloud