From nobody Mon Sep 30 04:45:24 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 4XH7mP4ZpMz5XkHB; Mon, 30 Sep 2024 04:45:25 +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 4XH7mP1Rdbz4FDS; Mon, 30 Sep 2024 04:45:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727671525; 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=aKy+IhVp4d0y/e53XdmuKoeMN3eiE8B6e7F8WmscERk=; b=IWxq4jvorRtF2mufVEE76DdmekwwJKNESXkJWqwc6nKkgHkGAXTS4XqAJ3ZUHbzxGcNurm 3hhgbYHmGnArp20zNSVbGddiyb6mlGiHdk3AkkfgvaSSNlhevFPzKLBfF4yOVclG0U+1I1 BEWM4jNkLHWyLh+XgmZFYAG8uxvNAbjnnZ+HD8SMaVvR7+kJns3UPgc+CxKh8IJsg6jN1+ kNjKYRsw2O5mIKrR2Ok4/mmUN9NJdPNLmLRHii1SYFE9ZabWYqnQ6clLFV9D3DrhHeI2B8 WVEAh0kAZAuyufgml9K4wLbB9+I8rOGSUXDv2sVnq+ASWkbwPK3fXCFUnClE/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727671525; 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=aKy+IhVp4d0y/e53XdmuKoeMN3eiE8B6e7F8WmscERk=; b=HnN2SA2HKfz3DZFakBf2IkZgzUvHca4hGotwQXs74LVUJCPo+GjxSFwjIMvV/z8+X4p/5N S3YT4QuXS8YBSxP4WQa2dJBo7uA8/4N7dS0Qx7PqNMAETfyH1Gr0LNazGIJR3MNiyiDoyI ZZDnOj6KNE+m8qpVYS56HZgHqo3MilZd5o5AokwyaJz6YX6ub1w/HanNEBSrfbNR64icdt 2gKlzcRyYmxu/Niyztk9XqhIhsn+xIXE675oX4lSHZ1ze29WG/FoS9suQrLZxIvReXnu9E qbiNaQRCNz2KMIrtfL0MyO7+/AWC+x6g2wSyE8EZFUYG/T+/856KDKyf4a7Q+A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727671525; a=rsa-sha256; cv=none; b=sKZyp3go+rlGVK7+mx0rAveiF/DJMChMS614YwcAT300CtbQD8d0/J9FI+/uoJsPRT65/p /K5qABneSStWVwUiAIU5HtLqyqUGpYhJUVcfDSQMYr9g6UXUOOkI2C8j44kt3y1vDxrw7/ Xpw5ozSSbRoINyD2RWGe+loGzcygb6RhySDHDqbP+Tr0rPS2w90GHBEL/rfkszjgyDcUb0 Kc7AsNkcANL83AazwMM3Tnq+6koTt2mo31nKmGNouxu+bNZcdMpdiUbjmaWqOq3inQ5pxi Qjda5WLmHjoBVqDeTTHYKPsti16SZ1ykRMszTJt4gzc7sRCLiTY3cah5XAoN0A== 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 4XH7mP00Vzzf2G; Mon, 30 Sep 2024 04:45:25 +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 48U4jOEh086926; Mon, 30 Sep 2024 04:45:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48U4jOBU086923; Mon, 30 Sep 2024 04:45:24 GMT (envelope-from git) Date: Mon, 30 Sep 2024 04:45:24 GMT Message-Id: <202409300445.48U4jOBU086923@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: 8c2748b922f5 - stable/14 - 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/14 X-Git-Reftype: branch X-Git-Commit: 8c2748b922f579080d4d8ca88a8ada5512a69035 Auto-Submitted: auto-generated The branch stable/14 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=8c2748b922f579080d4d8ca88a8ada5512a69035 commit 8c2748b922f579080d4d8ca88a8ada5512a69035 Author: Zhenlei Huang AuthorDate: 2024-09-03 10:25:24 +0000 Commit: Zhenlei Huang CommitDate: 2024-09-30 04:44:19 +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) --- 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);