From nobody Tue Sep 03 10:27:03 2024 X-Original-To: dev-commits-src-main@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 4Wyhd42jsCz5MkWl; Tue, 03 Sep 2024 10:27:04 +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 4Wyhd36xz4z4sKN; Tue, 3 Sep 2024 10:27:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725359224; 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=XbN/JETQK4s4R887eJsjnhwPQ4dFtXuyyNSa+LhVlsg=; b=Hg4QB32H0jaqT4O3mtKmCFu2xm+xAjNeKutYREDeJwQR0DsCO2pnEKUfq0ernUo1I/OqkC dZSeF+zfkspmQaud2a7wLlVavjt8753gUrtpIjlPNS1YZed4MyWfC0xP6zO40fE9ZEbEPE FR6XnJKH4vQYOo+gjlMBlNKp/bVHU6exNpXLB/HlHf7j5fIDw8WK7RYxky1RRHvYcPyYvE 6B/QwlNAysGmbmw2aiZdax+denyUn1a+4fwSttL/rhVaGBZRb2uDFGuq5WUM4VQ8bx1+7r jhbFEwMqVoq+dCdyzvtxKNM1MyDzNPJXxdeZXPql2Ayo1wVg+mmbvpGKf76zzg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725359224; a=rsa-sha256; cv=none; b=uJXLanu+4CB4skXWmwfGS0D6aLj3l0XkyYRGOYzvcXzQRV4kDPI/Oce6NKu/+KBZXFNjXq YQyt/8gj51JoeX2hzeP5L7WVgqcoo4eKyItsWZSUcTnK0MmUI1mJ95ZcBS/9lupTbwLKt2 gOJAC9BeFrFinYFNetjMnxH0wMcq2N303VtoZJa8J448LNXAzm2FEh/xGkccc69MOOMrxB 4FAOTncJqiEMqfnTp7rJqbSD4BZDQEZv30jKNcjzS0adFgNbMUHRidjUpBfoadXB5ysfIP 5YGX8T4U6wVfVzGngiInxhsS05M0/hLI4soC0LbCwvZnljGlQ7lIv3aUpDM/cQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725359224; 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=XbN/JETQK4s4R887eJsjnhwPQ4dFtXuyyNSa+LhVlsg=; b=H4L2zUONB1mJPFbQLR9+lDMS16Z6y47ga1dkxUv22zpLYLaxf1Ujx1Ag/TwVA2aWLcufVO JB0C5HrQR5HLqi74fNY2t/6g8/FlG8p6pzt6MH5Sge9uuZCfqIeyQh4XaeydWN7AXM05Xp 1eGnKw+2JxAXC0iRYxjcnNNSI8WW/rbZuqcbHBDjU6k0LSkwL8fgSWOEsJNIkGXEkXxrj6 3lXsZvhlvMMXsQzYmQGI6PUNrGaJOOuhorvolX5e/Dra78jC5E+r5BZerbPOa7Jqu42wxx OxvxpBSri/ouZVxz5W6UFqDKzQJQwPl/cUnQFC841Xc3DvvHIiTsd4Xfykjd2A== 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 4Wyhd36YyZzcss; Tue, 3 Sep 2024 10:27:03 +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 483AR3hj009626; Tue, 3 Sep 2024 10:27:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 483AR3LO009623; Tue, 3 Sep 2024 10:27:03 GMT (envelope-from git) Date: Tue, 3 Sep 2024 10:27:03 GMT Message-Id: <202409031027.483AR3LO009623@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Zhenlei Huang Subject: git: 3fdf587ab02f - main - ath(4): Stop checking for failures from malloc(M_WAITOK) List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 3fdf587ab02f33018bd042094e3d0bd4169352ed Auto-Submitted: auto-generated The branch main has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=3fdf587ab02f33018bd042094e3d0bd4169352ed commit 3fdf587ab02f33018bd042094e3d0bd4169352ed Author: Zhenlei Huang AuthorDate: 2024-09-03 10:25:24 +0000 Commit: Zhenlei Huang CommitDate: 2024-09-03 10:25:24 +0000 ath(4): Stop checking for failures from malloc(M_WAITOK) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D45852 --- 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 72f0a802aa5f..a242eab7a694 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);