From nobody Tue Sep 03 10:27:24 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 4WyhdT00Ylz5MkjP; Tue, 03 Sep 2024 10:27:25 +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 4WyhdS3KHCz4svb; Tue, 3 Sep 2024 10:27:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725359244; 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=lE0hFGgUbLaQkLIU5BrCsLvB7OxTtd9nf+CqIqiL9qc=; b=Wiajt/1WH2odqpzMzayL77UFy8l51NGIJf7yVZpIO4tQwDNSL3UlKEmUu8EqGAYS7TMdaO 77gOW4mappZx1sMod4FFVm0D59ds8FBSMKgBYpKO1aprpEdbYtblEDy4lZdf0FH1GWUrMt owOjMx55xgktSzC4M/BM07aJvkZhg5GbE8JinXsCe9LsSbomdGx2NX0ewbZahr+wylnfwJ YDGgj8hTKSRlsHZN8zptl+da39hlRwaCsxqubE1CmqQ1kDRf2SKTYm4jEfDhospnK1hbQK hxvnOlek6LMn8w8v8OeZ+L9ioDo5cvfXP4gF+5/gIiqEecBZ11/VNmdL0s7fgw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725359244; a=rsa-sha256; cv=none; b=GxtdS7jJcMRbS0vPf7005zROuxEqe9OavJ7ZGvGrDmrlcv/eWoHh2eBNGOP2sU66B5vqSo 9hB/7UFir50zyQtbIrjO1H8PEWXMz7UWe7C033/xHFzZjLnh156xUC5QLulrkpZ6g+5t3K bIaYc3AF8jtgVjsZD+WpoZR5S2za71c/B5GB55Jx60dzv6QAWq3Il2bVWZui+WPwiaUybq 1xL+8vh4EPxQX0Z1Fo9K0RIoVfhDtgXr/RILjvpM3ZTOby8tY8UaUReGa2t60Ji0Xm+ZUP ScchdIh6fMj0JAwF9cex8tpKqS1Syseumab7MXOuHJY1msUG1AHRtC/dcNqENA== 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=1725359244; 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=lE0hFGgUbLaQkLIU5BrCsLvB7OxTtd9nf+CqIqiL9qc=; b=Wzh2GHo+En7G2oAUlIfmGYfEiKDxbQPt7e45GOc9JTZkXr6QA3ltNd4GYXb23af/po6h84 VWd1Vd87KY/xktUNOeoJt2KwCQ00kNekVhemnvJv9x3j8ofP+fHNdIvDfZEDA9n5UBU6QI uxMOnGUouO1s4VdUETuxj94yL3C+9sIu6p1+ClrCsZJWqU2x41qcFYLu5HnC3wQcv2tm4I 0HDpxSJld3Z+tkS5m20VRMNsxrijPqpAyFRrPFb2gzTnpgcm9pdrpHKlxsfD1cs4BfR7et 7oAsVqD7masZjU4zqI00BQppeqYxCdOtbjELV3BiceLgSa5STPgNudUlCfgxEg== 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 4WyhdS2xNdzcLG; Tue, 3 Sep 2024 10:27:24 +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 483AROWw010558; Tue, 3 Sep 2024 10:27:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 483ARORl010555; Tue, 3 Sep 2024 10:27:24 GMT (envelope-from git) Date: Tue, 3 Sep 2024 10:27:24 GMT Message-Id: <202409031027.483ARORl010555@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: 849f9ac370bd - main - mpi3mr(4): 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: 849f9ac370bd66993ce5cc6fca0d2ef9bd03c2c9 Auto-Submitted: auto-generated The branch main has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=849f9ac370bd66993ce5cc6fca0d2ef9bd03c2c9 commit 849f9ac370bd66993ce5cc6fca0d2ef9bd03c2c9 Author: Zhenlei Huang AuthorDate: 2024-09-03 10:25:31 +0000 Commit: Zhenlei Huang CommitDate: 2024-09-03 10:25:31 +0000 mpi3mr(4): Stop checking for failures from malloc(M_WAITOK) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D45852 --- sys/dev/mpi3mr/mpi3mr_cam.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/sys/dev/mpi3mr/mpi3mr_cam.c b/sys/dev/mpi3mr/mpi3mr_cam.c index e00d61073d96..b4999e204ab7 100644 --- a/sys/dev/mpi3mr/mpi3mr_cam.c +++ b/sys/dev/mpi3mr/mpi3mr_cam.c @@ -2098,12 +2098,6 @@ mpi3mr_cam_attach(struct mpi3mr_softc *sc) mpi3mr_dprint(sc, MPI3MR_XINFO, "Starting CAM Attach\n"); cam_sc = malloc(sizeof(struct mpi3mr_cam_softc), M_MPI3MR, M_WAITOK|M_ZERO); - if (!cam_sc) { - mpi3mr_dprint(sc, MPI3MR_ERROR, - "Failed to allocate memory for controller CAM instance\n"); - return (ENOMEM); - } - cam_sc->maxtargets = sc->facts.max_perids + 1; TAILQ_INIT(&cam_sc->tgt_list);