From nobody Mon Sep 30 04:45: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 4XH7mD1LtHz5Xk0h; Mon, 30 Sep 2024 04:45: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 4XH7mC6PNHz4DnR; Mon, 30 Sep 2024 04:45:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727671515; 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=OaGOyWuC+VvPfxJ8z/rSshaS5Qo5084pIuzbJE1ZWUw=; b=G3q+iJ7BKnWd4MGANGnbeebcns0HeJRNnggv5TRLHj1zIUfdNyoOWYOGCQBUTfW2hfnQB/ fevMD2zTbzM1wDptd9fJ9qiAvzH0mZVe83rkyINi4ZJFZw28vQbMRDfIOaYFmkVU7oH4yg +lt5Qla9I6MMVdvbCLTm/C/Dy4B/zEeK84JXV2nvL0oqffBEhKy1hrv5gXJcCibf5ijEdC XZzTWF+MzkBxydI0zIBwqO/tUpKcZ6kBqUWRzYbVhHUDsq1EhmJrGpMgrvOyPIefAHSoNk sa4QOeZGN/pjC39g/QsveK/6gCxjinWZ4KyxoQfHgll8e0hmSuRA5EDrRFc+Sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727671515; 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=OaGOyWuC+VvPfxJ8z/rSshaS5Qo5084pIuzbJE1ZWUw=; b=kLaRao2E++1J0ROdmaFueXl4FggLziH/vteSFwMDvv92nKNSieaSrg1Swn2HGEL2Puksm8 LU2n7L/psSzKl7XlTUCvcomgp/l2ArGhWGj4zlaU/1OT8Z/agXI+h1j9E44OLzA+DWpFQW 4t44AuIB5qnzSwEbIk3L+YA4HARSO6ZwxfCkv7fa/w0+Bv3xtjRcjrehZBuFLoQm9Xpa+Z jHmahAUj32zCbnvYfDMc1Rk8llnzlT2VdlXLc/uSfSSWkNtR01PbWtz2ANmNL3KiXNh56b ZeFxPGeJu5OlbU4vubw7jRkbT2OYyKDeRiK1x5y0bWY31UownSH1SFE/l46Dzw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727671515; a=rsa-sha256; cv=none; b=RY7SO6vir9DMbjFooYxhBj/XHw+BMWwPiKa21Q72FmWL0ZZ5rlxbZnXQ1F6qVWGal1Dooy lwzUO5/16tm+ra5lf/NkWLszGki+MaqkGuVstGR5u4XOSypAtdQgT1LstjB2AkCsmHipJv ZFDJqwTJH2q+hsjHOTyP6U3OY+iiVJuvhjKOKkruZPsYEwqYkA2Dm0lVbdp8GHod6FPd3m rfgTiKXc7s5sBp1YD3vEoSWbOaIULlbQNlT+ja4ndfa3vTuKkFE5DrtP55yTUEF1XdEURs KBcFzmC3MWrz4T/4JT6F3Ek3S7igaR//KZXJjM5vjnMcFiwPEzZx3ibVApmtBg== 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 4XH7mC5n6zzfFr; Mon, 30 Sep 2024 04:45: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 48U4jFjD086520; Mon, 30 Sep 2024 04:45:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48U4jFNc086517; Mon, 30 Sep 2024 04:45:15 GMT (envelope-from git) Date: Mon, 30 Sep 2024 04:45:15 GMT Message-Id: <202409300445.48U4jFNc086517@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: 7bea79c1ab40 - stable/14 - LinuxKPI: 802.11: 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: 7bea79c1ab400fc223d730a89af97dcf4ba09911 Auto-Submitted: auto-generated The branch stable/14 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=7bea79c1ab400fc223d730a89af97dcf4ba09911 commit 7bea79c1ab400fc223d730a89af97dcf4ba09911 Author: Zhenlei Huang AuthorDate: 2024-09-03 10:25:21 +0000 Commit: Zhenlei Huang CommitDate: 2024-09-30 04:44:17 +0000 LinuxKPI: 802.11: Stop checking for failures from malloc(M_WAITOK) As a consequence lkpi_ieee80211_ifalloc() now does not fail. Remove unneeded NULL check. MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D45852 (cherry picked from commit 7bcb1228558b4325fab39616e2e3b2573a9e7da6) --- sys/compat/linuxkpi/common/src/linux_80211.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/sys/compat/linuxkpi/common/src/linux_80211.c b/sys/compat/linuxkpi/common/src/linux_80211.c index a4b5545e0c3c..34e40b961bed 100644 --- a/sys/compat/linuxkpi/common/src/linux_80211.c +++ b/sys/compat/linuxkpi/common/src/linux_80211.c @@ -4402,8 +4402,6 @@ lkpi_ieee80211_ifalloc(void) struct ieee80211com *ic; ic = malloc(sizeof(*ic), M_LKPI80211, M_WAITOK | M_ZERO); - if (ic == NULL) - return (NULL); /* Setting these happens later when we have device information. */ ic->ic_softc = NULL; @@ -4455,10 +4453,6 @@ linuxkpi_ieee80211_alloc_hw(size_t priv_len, const struct ieee80211_ops *ops) /* BSD Specific. */ lhw->ic = lkpi_ieee80211_ifalloc(); - if (lhw->ic == NULL) { - ieee80211_free_hw(hw); - return (NULL); - } IMPROVE();