From nobody Mon Sep 30 05:08:14 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 4XH8Gl2Ldbz5Xlr9; Mon, 30 Sep 2024 05:08:15 +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 4XH8Gk5csFz4Wrt; Mon, 30 Sep 2024 05:08:14 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727672894; 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=0Ycn77/ts7SxkNeLDRlu1c2JmDkV8mc04UoKkZ3e1sU=; b=wxTToD+z6zaQqY98n+cS5I0jUMuB2Jgi09jMbBuZdm8mYxnbVMeWGPaJmVS4krzO11GqDI dbH085fa8a3zpE4UIow/sjFfIS2LvwJryOhhj6enAW3GIBlWGjyNsPkKE+SJiRM1wfUxQE 4/UKflgKceJ8gYGroVP3hztAbO+6LNnc/NzivhzHgfQFSolQFnYWC02PAykIUD1BP6ocbz KriJoske9cSdCH6IG+3F+2PGbvl9SPnse5wFUB6+MM9OSot9ZIQBhF9ecc6A+7WppKrLc/ fAYw/KY5QehX4lRT9oyxz7zaNVD7hu+KoR2s4vGuHRYK0ZCEzaK+jCz05xbOSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727672894; 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=0Ycn77/ts7SxkNeLDRlu1c2JmDkV8mc04UoKkZ3e1sU=; b=i9C7nypb+6cLG0uphyhpeNxRn13mRyohbuURVLDwc49eoZP0p7LswiTV2sEi3I1CG0TXkj /xF1hlgGlYbDuFH+CG5aEufXW3/hoTK7exsl4npiUE0h3RfxTGSBYkTL6XOe43t11g5ujY xysMB5K1v82mDStbE8ujsDMwdJ5mtpzd2u5xgZ+Gmld0w0C2LZGLyGqRHQYiLE4qZQfmBL 5MQIL4vJ1SgDbUHPHmSjLxNbnU30CtzOpyTbG6UlPrLX3EYliR++EGn7Zu04gtV+VYw/NO e8/dW0m+4Wj3gkuzBWHlYkjCbCBcDL4PDwXcRvz9bpyrKsLi5KvAJOFaVmpeCA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727672894; a=rsa-sha256; cv=none; b=QwjB7LeQck8rbM8DM+pcY1mzuO4yjL1mK+VVJGsczQwhaHZOlrptv7g3ID2dm7UB4JJS0R mROg3SWpZPprcvuxFJmbuqPBTE82AKsf32bv6ApiHpVi//32On48F5EOJ6lQTEl2P9fN5r M5w9gCXzBa6Lp9hM9l/5PkX6w7kp6CopvGZdgMGZSEB+J/Qi5nHz6jOOhSV/OKDwAX1R0f dOttnspMHJz27RYzNY8mwfULUGiWI2yvIgIv9EhReR5lYBICypo7mcE8lKhnt4NsklrQin K8+Wxt7o+3Wqw0CHClJSVXKWoXtL/4nOK/Y3ZsOu1Kqk2LSCxNsOZm95tDZkXw== 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 4XH8Gk51W7zgDQ; Mon, 30 Sep 2024 05:08:14 +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 48U58EvZ024656; Mon, 30 Sep 2024 05:08:14 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48U58EWl024653; Mon, 30 Sep 2024 05:08:14 GMT (envelope-from git) Date: Mon, 30 Sep 2024 05:08:14 GMT Message-Id: <202409300508.48U58EWl024653@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: d40d85672e9d - stable/13 - 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/13 X-Git-Reftype: branch X-Git-Commit: d40d85672e9d8154375d8a2ad6d6dabf26865576 Auto-Submitted: auto-generated The branch stable/13 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=d40d85672e9d8154375d8a2ad6d6dabf26865576 commit d40d85672e9d8154375d8a2ad6d6dabf26865576 Author: Zhenlei Huang AuthorDate: 2024-09-03 10:25:24 +0000 Commit: Zhenlei Huang CommitDate: 2024-09-30 05:05:33 +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) (cherry picked from commit 66bb507ccb1c9860662a921d231f591ec814d83f) --- 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 be2c55baaabe..cc560140159c 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),