From nobody Mon Sep 30 05:08:15 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XH8Gm1gnWz5XljP; Mon, 30 Sep 2024 05:08:16 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XH8Gl6Nczz4X23; Mon, 30 Sep 2024 05:08:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727672895; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=7CW5XUxmUpk53nYvvceoc9sb2fPASKUgkNyiQYzLd4k=; b=DHi1O4xuirX749gWTx99SyShuJeQuy7J83XGxwY+lPxtx7Tq0wtEnYT2x7wTKX6n9z9E4V moUH218tbWevQAf1Vm5kaS1g++P2PTOFD5IG10m6ZTWEnUriNKN607TvE1q+ZsWcCUJI91 nQ5peUI+EXfgyZtJ8fRMzRRog5AJ8r6V0YazjdzzG4Jxtvc/D6Wq8usgPbDIdbQt8U1yJz NhIpeFMGUd1hEWEs0rtgYOk189Eq1MIwx0DUo68wzz/cmEpmpb9AhKqjTDCZ+lGIS58DdR 7AIUOn11nBJAL4lVaKD2LlBfwF0LJALSDaLObCBfmnXbwJQjUV2DEx2dYp3yFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727672895; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=7CW5XUxmUpk53nYvvceoc9sb2fPASKUgkNyiQYzLd4k=; b=tAxVKioxUs+c/2kK/Jc9tPdkpUx8EIRiOsMz/LxNqixekJ6KnzfB0t2AV+L/Uhs5DVZpOF tkFMN6/ppBXQj18yAgWJ+OISHiDAY3MHz0LrntqBfi/0EzbjV1zmphRdQFeytjB4mbge8R GfbOJuPTr33JMCbANgTjNYz9VJ2U8PxOUkF8KKslCvuIsMxn3LWSv1HXTjsk9eUZjP3I8q SQHWaIc+Hp5bwUiLVwudpu4PB8rxzMjP+g/9aMieXj9H0C6GB2fYRuir6jjkDVNpG00sKI 7Imy4lNuZHhF44J7Mpk/3Zrg2F2Rp410MCICqKOxR1wUvnADX6z46SuqjuyAew== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727672895; a=rsa-sha256; cv=none; b=yy2idA4I2IN65Fc2PUcFpS4u65pVV/BZwWUrWcxmu7T0J5SGFzP8Y1vww2/83AvCom0zjE GynrAjjlyYYnjhGMAgUMTGJMdvaJwGZnFXOokTG9XPyJwbEF4hynaVap2bxbfh15pXMMk7 b7wCvdWvjsYtstA1lucz1fAddwayBL7PEPv1KaubqgdAF40sV4FlNU3Ake95qsvefd437Z nyIvL3vCDfTK6oZX5gfgNWTabRUGHjJXJeuOHgbmN4ZpvplRs8Yfcj9ggDZ8Ys99Caat1c YyXrdatYgEOpvrgxxGkP4h5f2Kl45YyF4Fvrx+YDKlRzWmDu9bYKSQt6xTcUCg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XH8Gl60w0zgDR; Mon, 30 Sep 2024 05:08:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 48U58F2O024715; Mon, 30 Sep 2024 05:08:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48U58Fkj024712; Mon, 30 Sep 2024 05:08:15 GMT (envelope-from git) Date: Mon, 30 Sep 2024 05:08:15 GMT Message-Id: <202409300508.48U58Fkj024712@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Zhenlei Huang Subject: git: d0aa34422a53 - stable/13 - ath(4): Stop checking for failures from malloc(M_WAITOK) List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: zlei X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: d0aa34422a53ddf643d6187713ae453c5935ac89 Auto-Submitted: auto-generated The branch stable/13 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=d0aa34422a53ddf643d6187713ae453c5935ac89 commit d0aa34422a53ddf643d6187713ae453c5935ac89 Author: Zhenlei Huang AuthorDate: 2024-09-03 10:25:24 +0000 Commit: Zhenlei Huang CommitDate: 2024-09-30 05:05:33 +0000 ath(4): Stop checking for failures from malloc(M_WAITOK) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D45852 (cherry picked from commit 3fdf587ab02f33018bd042094e3d0bd4169352ed) (cherry picked from commit 8c2748b922f579080d4d8ca88a8ada5512a69035) --- sys/dev/ath/if_ath_lna_div.c | 6 ------ sys/dev/ath/if_ath_pci.c | 5 ----- sys/dev/ath/if_ath_spectral.c | 7 ------- 3 files changed, 18 deletions(-) diff --git a/sys/dev/ath/if_ath_lna_div.c b/sys/dev/ath/if_ath_lna_div.c index 1b20591fc64e..0755bb667716 100644 --- a/sys/dev/ath/if_ath_lna_div.c +++ b/sys/dev/ath/if_ath_lna_div.c @@ -96,12 +96,6 @@ ath_lna_div_attach(struct ath_softc *sc) ss = malloc(sizeof(struct if_ath_ant_comb_state), M_TEMP, M_WAITOK | M_ZERO); - if (ss == NULL) { - device_printf(sc->sc_dev, "%s: failed to allocate\n", - __func__); - /* Don't fail at this point */ - return (0); - } /* Fetch the hardware configuration */ OS_MEMZERO(&div_ant_conf, sizeof(div_ant_conf)); diff --git a/sys/dev/ath/if_ath_pci.c b/sys/dev/ath/if_ath_pci.c index 95e3715dda2b..6e332b6c0c3b 100644 --- a/sys/dev/ath/if_ath_pci.c +++ b/sys/dev/ath/if_ath_pci.c @@ -269,11 +269,6 @@ ath_pci_attach(device_t dev) __func__, fw->data); sc->sc_eepromdata = malloc(fw->datasize, M_TEMP, M_WAITOK | M_ZERO); - if (! sc->sc_eepromdata) { - device_printf(dev, "%s: can't malloc eepromdata\n", - __func__); - goto bad4; - } memcpy(sc->sc_eepromdata, fw->data, fw->datasize); firmware_put(fw, 0); } diff --git a/sys/dev/ath/if_ath_spectral.c b/sys/dev/ath/if_ath_spectral.c index 58f21b526e93..951d66605981 100644 --- a/sys/dev/ath/if_ath_spectral.c +++ b/sys/dev/ath/if_ath_spectral.c @@ -112,13 +112,6 @@ ath_spectral_attach(struct ath_softc *sc) ss = malloc(sizeof(struct ath_spectral_state), M_TEMP, M_WAITOK | M_ZERO); - - if (ss == NULL) { - device_printf(sc->sc_dev, "%s: failed to alloc memory\n", - __func__); - return (-ENOMEM); - } - sc->sc_spectral = ss; (void) ath_hal_spectral_get_config(sc->sc_ah, &ss->spectral_state);