From nobody Tue Sep 03 10:26:59 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 4Wyhcz5VSpz5MkYY; Tue, 03 Sep 2024 10:26:59 +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 4Wyhcz2pDHz4s5K; Tue, 3 Sep 2024 10:26:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725359219; 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=sPkUsLLelb1WbRu1JKBEMLAOiMvIc9ms3zuw+GhXwY8=; b=jMuMbd49tZ6YIgceVvWgNzsCZEKu81RpCzRsFyB+LtoaVU+EpWrHkYv0nE7XEmQ+thjG5f HhBrFB5/ePrXSZvVX1uy99cCZgyW0OrEbND5o/i7CF3P2C9NNCGMuIt1nnLxbBNxH/5Ph9 OUeopmrVE+CmOoGJr9V/u6G8A+aZP4tCHpUFYsAoruPPHuKr11aFo0z/g/OPoqPaMOYdd8 FTrLBrm3orIg6pbU7Ov9pVpjP9Uih8iGY0SYZlDLPy9AOURYhj5iGcpboDoqyg+DLkV4Sw FTV70RR/UZJ/U+xuNZgC/ULH/KF3QDKjoLMY1RvonLTUEQPnZOx7X0PxezPM8A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725359219; a=rsa-sha256; cv=none; b=ZjveKVMp3dmwtJzKzx/uKS/clB53tE0yQIzqG9LlupuCBAQjEzO4bEyNbXY5hqy3Q403c9 HqPDMNMFIwHX9MddPmxt1c7A300lgViE8KWQNHpOcYyZVoub5Kry+QELLFj4LnLiYWgMzm 2aZodZpTdY4o1Vd4hEI2AAlJnnC+28Hb+kQGY8EAu8m9yAMhpn9uIhQHf7fxtKkSY3yULg Hn8xgFHn93vK8cBZnAQ0osym/ZLUDyF4EO70ZutJAqk3ClKxHPFHlwxqKh+IOOsc8Gzav2 h6wyDwldsGBrHVCG8+CubIT9t08LaKVfWW5XlbvcbRZctfiCn/L6Zx2ztANVvw== 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=1725359219; 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=sPkUsLLelb1WbRu1JKBEMLAOiMvIc9ms3zuw+GhXwY8=; b=S9jGFKPXD6XAFrVGPm3SR5y+YkJZvzEMFVMq5tUsJBYLzBFNqxSfsBXctxK6ePPcy426Xq vwvhlSuXOkpPrY8CDEgVfwoLIQRFGEkRzeEH7xM3HXB2mpubt3kULs+vDZX72yUGR3ngIn Ep7xubrLffFWpnqKbx9gmYREPK/7wD0OohtcFvQqj9fg/F28SRGOcTC15SL7khpDAT7B1L G5LrurfNmqwzuilXOqBu4zxDjq+Vqdc+T/U1nvf5sH6aG+j1WKNfo118ZOOBhC+aTsxhox 1NWiDPbyT2YT7q3tpE0EkvrxSZS8+I0IyxMlSX1/UQHL2XeR+2/N1EC4SYfEmQ== 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 4Wyhcz2JnRzcnD; Tue, 3 Sep 2024 10:26:59 +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 483AQxR9009416; Tue, 3 Sep 2024 10:26:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 483AQxmO009413; Tue, 3 Sep 2024 10:26:59 GMT (envelope-from git) Date: Tue, 3 Sep 2024 10:26:59 GMT Message-Id: <202409031026.483AQxmO009413@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: 1d321c1907c2 - main - cmn600: Stop checking for failures from malloc/mallocarray(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/main X-Git-Reftype: branch X-Git-Commit: 1d321c1907c210a33192ff5293f5c23554c96867 Auto-Submitted: auto-generated The branch main has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=1d321c1907c210a33192ff5293f5c23554c96867 commit 1d321c1907c210a33192ff5293f5c23554c96867 Author: Zhenlei Huang AuthorDate: 2024-09-03 10:25:22 +0000 Commit: Zhenlei Huang CommitDate: 2024-09-03 10:25:22 +0000 cmn600: Stop checking for failures from malloc/mallocarray(M_WAITOK) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D45852 --- sys/arm64/arm64/cmn600.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/sys/arm64/arm64/cmn600.c b/sys/arm64/arm64/cmn600.c index 4e3be8fee40e..530cdcdc3d06 100644 --- a/sys/arm64/arm64/cmn600.c +++ b/sys/arm64/arm64/cmn600.c @@ -332,9 +332,6 @@ cmn600_create_node(struct cmn600_softc *sc, off_t node_offset, int i; node = malloc(sizeof(struct cmn600_node), M_DEVBUF, M_WAITOK); - if (node == NULL) - return (NULL); - node->sc = sc; node->nd_offset = node_offset; node->nd_parent = parent; @@ -399,8 +396,6 @@ cmn600_create_node(struct cmn600_softc *sc, off_t node_offset, node->nd_children = (struct cmn600_node **)mallocarray( node->nd_child_count, sizeof(struct cmn600_node *), M_DEVBUF, M_WAITOK); - if (node->nd_children == NULL) - goto FAIL; for (i = 0; i < node->nd_child_count; i++) { val = node->nd_read8(node, child_offset + (i * 8)); node->nd_children[i] = cmn600_create_node(sc, val & @@ -420,9 +415,6 @@ cmn600_create_node(struct cmn600_softc *sc, off_t node_offset, break; } return (node); -FAIL: - free(node, M_DEVBUF); - return (NULL); } static void