remove high-level error messages that cause noise when qwx fw is missing
authorstsp <stsp@openbsd.org>
Fri, 16 Feb 2024 14:16:16 +0000 (14:16 +0000)
committerstsp <stsp@openbsd.org>
Fri, 16 Feb 2024 14:16:16 +0000 (14:16 +0000)
sys/dev/ic/qwx.c

index 6e45f57..8d0c26f 100644 (file)
@@ -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 <stsp@openbsd.org>
@@ -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;
 }