From nobody Tue Sep 03 10:27:02 2024 X-Original-To: dev-commits-src-main@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 4Wyhd30bLqz5MkR4; Tue, 03 Sep 2024 10:27:03 +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 4Wyhd264XJz4sGP; Tue, 3 Sep 2024 10:27:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725359222; 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=ymxQFqvsMpubtCu2ikT5jCpg0GFOkVQGEjADwGNWJ4I=; b=fJOsLH0tgBAxz0BTxQyvwpqoo5pfmidYaUOxvIf1Stgfq3Fp8ZeNdDCSl8vnY5aPBpVJKX udilLB7EOWuXNV36EEP1jXPW1AGBw+kBEVTgbC3Y+DAy6TMrOK9A5uJ1ebj468Z5R9F/AA L/j7gmtVHoaaJc3l2Yrb+0ezaaAtEPDxtsss9m5vssYXmZAdj3YgU2HNjkp+hj64sUyxoV JVz3DqYuBD3OGpxrxei/zQdo9bYR/zQzoPCHy8XmDpP1WzgJFmBELVt5H/jqGEHv6dOqXR +ekL1h2p/0swxNmBB816v/B4h1PRl45witrNBO+EiHTPGrke7xd5nC1M5ynHBw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725359222; a=rsa-sha256; cv=none; b=kK+FIUS20hgV1WvAWkcTmuxjkdkyXbvjBCuwMEpp1eT0xEWfZO47N7wPMFaHm7jfgoFrJh vfHWKgkS6Ybsnli15wiZkLwxbchsJQx+ELvGaubA4hLuGzgRjIdkbS5RuttM2fMewfB9Vq HXqF3lbzHSA4UfEHnMVVUHb6qVE/e4+Sh/hYR3kvnDPxQSwCOdbGzFirf9lP/ooVIv3tds nOucrFo151r2Uz2VWOZQu5hAi9j/27lqVmuPm31QoiPmJwWB7fndMHPsr4PsWteVbHh7to ZbTMp+3OWPRRfdLrpfgp7pHtCZNca+Ol3cmoCdo4NZmGzMiUhdfWCqkg+cQYvQ== 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=1725359222; 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=ymxQFqvsMpubtCu2ikT5jCpg0GFOkVQGEjADwGNWJ4I=; b=m+ciY+OpUIj6i0x706eBXlz3/gTLk8RXwYQpAglhsGgW490/EbcbXzU58emNzx7xBZREji oL+VxelgkXPama9UhyIpj3gqTqFnInJ5qh/7h8aY9f3xChlTo6xWH3UZKh07JeJxfLzqNd bSby2IfeZUROcnjXn6b/LAIXc+wQ2/oRXV0EtNKIe8kjMWJvPm93gnr0b6J0fc76QnRRDy f0wrlzEVekr8O7iQz+L5HxSKPquC0wqiFQ3ppWifpoNGccumZ/ymmmTwq0QRin9yjHdURP ELBoIHtZxls/5m7B1atsDjF8HlWG7nFMaf4rTYhAjh5dbX/W3vIlBX8M/xqJqQ== 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 4Wyhd25jDnzcb3; Tue, 3 Sep 2024 10:27:02 +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 483AR24I009572; Tue, 3 Sep 2024 10:27:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 483AR2E3009569; Tue, 3 Sep 2024 10:27:02 GMT (envelope-from git) Date: Tue, 3 Sep 2024 10:27:02 GMT Message-Id: <202409031027.483AR2E3009569@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: e06e2c840747 - main - altera: Stop checking for failures from malloc(M_WAITOK) List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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: e06e2c84074740a0087193d5929d09f1bc7e1c4b Auto-Submitted: auto-generated The branch main has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=e06e2c84074740a0087193d5929d09f1bc7e1c4b commit e06e2c84074740a0087193d5929d09f1bc7e1c4b Author: Zhenlei Huang AuthorDate: 2024-09-03 10:25:24 +0000 Commit: Zhenlei Huang CommitDate: 2024-09-03 10:25:24 +0000 altera: Stop checking for failures from malloc(M_WAITOK) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D45852 --- 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),