From nobody Mon Sep 30 04:45:23 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 4XH7mN41RPz5Xjv4; Mon, 30 Sep 2024 04:45:24 +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 4XH7mM6MlXz4F7g; Mon, 30 Sep 2024 04:45:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727671523; 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=/ln+Cyz3X/AptOaqzoWggl4SgekldK80KD0sjy77isk=; b=o4Sw4uxiAw8OmXV4yXem1SdQeZ3n+ac0iohPZZh9c22UVl68K6ZBkHLTL/cqUJDeWivhbT xiEXVqYhmhj+ZVoWHJLH+sAqt3UzMOYkGuA3Zr4ZqCSCZihkVsV4X/wNa1le1tm11xDB59 ltWroMWzE1fk5bkUQksgfGB6z9WHaGUebOYIRKLeY0XM+w/E1r31lDjn60ASoHnR6zha2V 0uUj978HldtUfTpnCr0PhjTQimkMlwdQ1r/raifd3vC41S5AoyZfIgwq2XEp+sakXxP/Ih svgWrU02RLh+mphAHOy40VnXZQMnNalYHNjsuXygZclODSeKEVxBFOWZ2Ke8Fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727671523; 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=/ln+Cyz3X/AptOaqzoWggl4SgekldK80KD0sjy77isk=; b=QlWwzIhurTdKdpmSU8sguIFVJpFyOLHl66jBzNShWt9erWkKUI63Q6isVmkyru2WFUuG59 YKzmbpgLHXd8Y39u21DRYTBt4Y+YUuWRa6uOXMJVerd17U8E/bKjxz5YHiKURtzAmEI2wr MLBS9+DIxbnaHQ+odG6kfxs+d9ygAV1RPsl0Q/3kUzrXTsTE0nrbYXDEbVdOu59iRWmkt9 bo86KZfpwlwQGYgVmeB3rLHHumvSLTo8fOMV8zwAGSxUXldSAcegzwlg4FTTTXiOb6Nc9K kyqco24V4RbaoijHbqUc7E+d3/hfyqG+bUJrw+fstgarxddc6Xz3H/fwdfmmwg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727671523; a=rsa-sha256; cv=none; b=rqmY+yxkWiQuI2ZYP8QCCevANa1hQz0+5EhDC1ZUMm/eG5+ecMPMveh2FxqLm/69S1kB4m vuGNXGrXTtnu7eSAC8nUpLb2VQhuouSu+uJj93awV5GZTbb+qItXAoz2NCEPBZDusTZB1o YFNeMeI76tHq+ErDwk9wPPVeY6q9sg6McBocMCiOR8VpPxcODp9ODRIgIODpgPgKB9FB+E xwat61IklnQfurWJtOa423kD6Deqx4YWS6HPhqbSLZhdCzM1u+81cvMPoWWn7a5LNCQ077 Y5anxJdJV6yq2UrBhgx2YwLht0eJVo5/T+EjGFkH3ufZaEkadGhHLgEeFSxvJg== 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 4XH7mM5qkbzfFt; Mon, 30 Sep 2024 04:45:23 +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 48U4jNVr086875; Mon, 30 Sep 2024 04:45:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48U4jNBo086871; Mon, 30 Sep 2024 04:45:23 GMT (envelope-from git) Date: Mon, 30 Sep 2024 04:45:23 GMT Message-Id: <202409300445.48U4jNBo086871@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: 66bb507ccb1c - stable/14 - altera: 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: 66bb507ccb1c9860662a921d231f591ec814d83f Auto-Submitted: auto-generated The branch stable/14 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=66bb507ccb1c9860662a921d231f591ec814d83f commit 66bb507ccb1c9860662a921d231f591ec814d83f Author: Zhenlei Huang AuthorDate: 2024-09-03 10:25:24 +0000 Commit: Zhenlei Huang CommitDate: 2024-09-30 04:44:19 +0000 altera: Stop checking for failures from malloc(M_WAITOK) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D45852 (cherry picked from commit e06e2c84074740a0087193d5929d09f1bc7e1c4b) --- sys/dev/altera/msgdma/msgdma.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/sys/dev/altera/msgdma/msgdma.c b/sys/dev/altera/msgdma/msgdma.c index bb35d7315b6c..c5c75a5fb5e1 100644 --- a/sys/dev/altera/msgdma/msgdma.c +++ b/sys/dev/altera/msgdma/msgdma.c @@ -356,11 +356,6 @@ msgdma_desc_alloc(struct msgdma_softc *sc, struct msgdma_channel *chan, /* Descriptors. */ chan->descs = malloc(nsegments * sizeof(struct msgdma_desc *), M_DEVBUF, (M_WAITOK | M_ZERO)); - if (chan->descs == NULL) { - device_printf(sc->dev, - "%s: Can't allocate memory.\n", __func__); - return (-1); - } chan->dma_map = malloc(nsegments * sizeof(bus_dmamap_t), M_DEVBUF, (M_WAITOK | M_ZERO)); chan->descs_phys = malloc(nsegments * sizeof(bus_dma_segment_t),