From nobody Mon Sep 30 04:45:49 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 4XH7mt34Lhz5XkN1; Mon, 30 Sep 2024 04:45:50 +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 4XH7mt0f1Hz4FsX; Mon, 30 Sep 2024 04:45:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727671550; 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=DsjqXn+WuPlBswS9+xJ+UnOvx7MtMwbyCE0UiWb8a6w=; b=x8HP+sIT+91sQ/0qexEE4WWw9C6ifnC01mluUhDecMAQcHPK/wUfskEJBf48q6K2U9UeEC rfcJ6YyORiPCq8dkhujoSa6EVu7is8g5NXXATuyhKZ81LWtDQbjuVnfEvUqYRfjl8dr0Ey 8XjuUr8hlHqffInnf3OtZH/Rs2a1IPNhgN5hDzXptiPwJVBNlGbfplsBg8DwmUf/gGHc7Y xx1+wZwGOAXFvXH+69L7y2d2XZVyHsj5MO6wiOoCLlHzlEgwqf1OaNDjxdC5nwfru30eM+ c7o3EeZdJ3SIcWDUGo1s/OCs2KAj3tpgDY77qFVL8tKs4y28G6grYoUosBniwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727671550; 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=DsjqXn+WuPlBswS9+xJ+UnOvx7MtMwbyCE0UiWb8a6w=; b=Ao9+8GSJ9ocM2ILb9ZgrHwtS6tYXmKlTzGJGRm9RrdSozWSngG5A9lkEJQuVwlgC4C/Jav Moj6sw8Y3V8MTPkyMuDmlk+NcxUYlM0YDvfdiJEiFPR5NLhP0ba+XOLmRF/BQj12Dyy/E0 zBSxnK5sZ2sgzFrPs9VYzl2jTxYTLrp3JKOm8K8W14ZIF2lU/vx5ujYYv51aZ7/iNCLKr3 j/oGEwJYIljXDIiVdVKHKcEZ8M7kgfctcO+LZKBt6A8nxGadOQqtjmwVsjklzI2K9xDrhX EGquZruRoxzbLccjvTrkgg5IXSoYPSGyrhixWXSL7cA20hLFVn1hn9cq1m8lOQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727671550; a=rsa-sha256; cv=none; b=oRWsB5oxa9BvUMFpqMnQoGh5XhjJgDyyQUvjhyyej9G5a7GvTIqrOtDEEXw0Jc7pMhndrQ /c6iOwqdTXZrxbm7CNfUMJfD262b3a8OEbyStT+EmL7LKMPiI7kaGQS9x1MpyQhz27sibb joNqspq9qut7GoDJewx6b34cO3GIcrlduwgC53y6I/KjHPxMP2UCC8u4qTzvOOskEg3VOd rxfaRxxtUJu4+mTNqSzk0G2HdE4DCEJn5V5wZKQ//EpF/fxf1RKWQsxOS8Zq7vRCt042Zh H7paBSGejSsqeAUAZ9Qm7Tcm7f9OKS0qdcXSoLRrKAl4LJZAOPHvkXHh5/nbbQ== 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 4XH7ms6fQWzfd0; Mon, 30 Sep 2024 04:45:49 +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 48U4jneC088047; Mon, 30 Sep 2024 04:45:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48U4jnOA088044; Mon, 30 Sep 2024 04:45:49 GMT (envelope-from git) Date: Mon, 30 Sep 2024 04:45:49 GMT Message-Id: <202409300445.48U4jnOA088044@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: 140a0c8f3981 - stable/14 - sume(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: 140a0c8f39816648719d9670fb641c657732439e Auto-Submitted: auto-generated The branch stable/14 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=140a0c8f39816648719d9670fb641c657732439e commit 140a0c8f39816648719d9670fb641c657732439e Author: Zhenlei Huang AuthorDate: 2024-09-03 10:25:33 +0000 Commit: Zhenlei Huang CommitDate: 2024-09-30 04:44:26 +0000 sume(4): Stop checking for failures from malloc(M_WAITOK) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D45852 (cherry picked from commit 761339c5544a360df9d3bab70675fea246eb6a83) --- sys/dev/sume/if_sume.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/sys/dev/sume/if_sume.c b/sys/dev/sume/if_sume.c index 4113af5a48b3..b6a8eb62219e 100644 --- a/sys/dev/sume/if_sume.c +++ b/sys/dev/sume/if_sume.c @@ -1196,16 +1196,11 @@ sume_probe_riffa_buffer(const struct sume_adapter *adapter, { struct riffa_chnl_dir **rp; bus_addr_t hw_addr; - int error, ch; + int ch; device_t dev = adapter->dev; - error = ENOMEM; *p = malloc(SUME_RIFFA_CHANNELS * sizeof(struct riffa_chnl_dir *), M_SUME, M_ZERO | M_WAITOK); - if (*p == NULL) { - device_printf(dev, "malloc(%s) failed.\n", dir); - return (error); - } rp = *p; /* Allocate the chnl_dir structs themselves. */ @@ -1213,11 +1208,6 @@ sume_probe_riffa_buffer(const struct sume_adapter *adapter, /* One direction. */ rp[ch] = malloc(sizeof(struct riffa_chnl_dir), M_SUME, M_ZERO | M_WAITOK); - if (rp[ch] == NULL) { - device_printf(dev, "malloc(%s[%d]) riffa_chnl_dir " - "failed.\n", dir, ch); - return (error); - } int err = bus_dma_tag_create(bus_get_dma_tag(dev), 4, 0,