From 76f525ce1fd1ee4a27ecf71429a0028b09c46745 Mon Sep 17 00:00:00 2001 From: stsp Date: Fri, 16 Feb 2024 14:16:16 +0000 Subject: [PATCH] remove high-level error messages that cause noise when qwx fw is missing --- sys/dev/ic/qwx.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/sys/dev/ic/qwx.c b/sys/dev/ic/qwx.c index 6e45f57cd9c..8d0c26fc074 100644 --- a/sys/dev/ic/qwx.c +++ b/sys/dev/ic/qwx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: qwx.c,v 1.42 2024/02/16 14:13:45 stsp Exp $ */ +/* $OpenBSD: qwx.c,v 1.43 2024/02/16 14:16:16 stsp Exp $ */ /* * Copyright 2023 Stefan Sperling @@ -186,10 +186,8 @@ qwx_init(struct ifnet *ifp) sc->vdev_id_11d_scan = QWX_11D_INVALID_VDEV_ID; error = qwx_core_init(sc); - if (error) { - printf(": failed to init core: %d\n", error); + if (error) return error; - } memset(&sc->qrtr_server, 0, sizeof(sc->qrtr_server)); sc->qrtr_server.node = QRTR_NODE_BCAST; @@ -19136,10 +19134,8 @@ qwx_core_init(struct qwx_softc *sc) } error = sc->ops.power_up(sc); - if (error) { - printf("failed to power up :%d\n", error); + if (error) qwx_qmi_deinit_service(sc); - } return error; } -- 2.20.1