diff options
author | Visa Hankala <visa@cvs.openbsd.org> | 2019-09-22 04:43:25 +0000 |
---|---|---|
committer | Visa Hankala <visa@cvs.openbsd.org> | 2019-09-22 04:43:25 +0000 |
commit | 22f39cb510c7f0a6d7755a868f58fe4b483eef95 (patch) | |
tree | 88721be66b1386a1e100022019583ad567ab4429 /sys/arch/octeon | |
parent | 64bc07e3cacb783be8ac44ff4de4a35462f4c42b (diff) |
Ignore non-host ports silently.
Diffstat (limited to 'sys/arch/octeon')
-rw-r--r-- | sys/arch/octeon/dev/octpcie.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/arch/octeon/dev/octpcie.c b/sys/arch/octeon/dev/octpcie.c index 2eb9778a1eb..23f18e21bf6 100644 --- a/sys/arch/octeon/dev/octpcie.c +++ b/sys/arch/octeon/dev/octpcie.c @@ -1,4 +1,4 @@ -/* $OpenBSD: octpcie.c,v 1.1 2019/09/07 13:58:58 visa Exp $ */ +/* $OpenBSD: octpcie.c,v 1.2 2019/09/22 04:43:24 visa Exp $ */ /* * Copyright (c) 2019 Visa Hankala @@ -362,11 +362,8 @@ octpcie_port_attach(struct octpcie_port *port) goto error_pem; } - if (octpcie_port_is_host(port) == 0) { - printf("%s port %d: not in host mode\n", - sc->sc_dev.dv_xname, port->port_index); + if (octpcie_port_is_host(port) == 0) goto error_pciecfg; - } if (octpcie_port_reset(port) != 0) { /* Error has been printed already. */ |