From nobody Tue Sep 03 10:27:10 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 4WyhdB74ldz5MkGD; Tue, 03 Sep 2024 10:27:10 +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 4WyhdB5mMtz4sQk; Tue, 3 Sep 2024 10:27:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725359230; 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=ODWryf/qjU14nDtYgh2aWWh3ndiVVrwv5VK7V71fmWY=; b=tJCoOQQ8ILe+m01jWq4R3udyv5r0nCZT6l0qWXvwCibAlzXxbhn/Oq8vMjJ8kOxN+WW1Mc auiF3UlsH0CctI1+kbr4dMZMIxzGo8qOirqnTPezZJPXXQl4ynPu095sN2CTLRfZ5nPs2k dfnuCCB9mJJus4+0RqSb5HJd8bzMuzydnQtNmct/I18r0pYiXovgH8VWNAVdno7afF+1tE zeeLEv1dgPnwbxgedkfVk0PAehg5P8WzqllzTxhzesXwBaLA0IDTUL7HdWQRzPbXuhYm2e Aa3EYuyDtfl458MORnXmwTnS4nty2tBmKp8qRSPEH1UdnXDFSYR/KBIHSr99oQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725359230; a=rsa-sha256; cv=none; b=c3etPXx3UtZLVbhj0cppMnKN+IQredZHI+MLIvviWZVEHJEHjt3Ofvw59uBcAmQ54yL2vt fgAbGlW442AqT4TsZQLX+SPINaR/p+b6Syec1V7mUWYqb/gKFqDdOpndeA8iaNe945/R8C gtr6YTXZjc37t48eR/9VA6Wf+rDxg6Pu4EYsiLV9JYUplafCxVxFUZ4ZIF+eduhvCq6TLa S10/S9No8uY/sbdSjp/tbUbs5HqcCj1KmB9Hg2jKc1YkVLpGLgd1Lvk4D08FKZzc4PLnRW QkayYtoJFb40sRfLGqqRT8+yEyH5bsu0ILuF5hFaNNwoZt5Mmzc4Vm9y28D+VQ== 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=1725359230; 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=ODWryf/qjU14nDtYgh2aWWh3ndiVVrwv5VK7V71fmWY=; b=D+7ZGr7xHAYTS1SQ+hwB+5MQ/trFNclw14aSJfZuWNFAWV13nC3fD3RTnA1xCo89rbfOTW RthlTuJoQpjbHb9jvPc5h/UAaNWPYtxQ4eR7JkVZCWmT3ihNmwNDzBatzKvKHsGZmCL50/ l64NAy8AygaPrNFaj9iO8HqFCl/eKPu9Hl2DeCL4Ru9ORdTrPMqPAv+bHtPSSVRjV7y3hT pmqpoZh+LsU5/zrzzaPztKtLlnj4S/p0S76GVKSOWitenVyVHqg0jcRmJJm/+FrEjW3C5+ BHVJW+AA74HX6WnWPmVGHbJDPJHWnfHAJBrVabxUyBHPz8X1qGNjkj8xRGwrMQ== 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 4WyhdB5Nf4zcb5; Tue, 3 Sep 2024 10:27:10 +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 483ARA54009923; Tue, 3 Sep 2024 10:27:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 483ARA3t009920; Tue, 3 Sep 2024 10:27:10 GMT (envelope-from git) Date: Tue, 3 Sep 2024 10:27:10 GMT Message-Id: <202409031027.483ARA3t009920@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: 51971340bd3f - main - ena(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: 51971340bd3ff41591adbbfca68e9e753f6eb135 Auto-Submitted: auto-generated The branch main has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=51971340bd3ff41591adbbfca68e9e753f6eb135 commit 51971340bd3ff41591adbbfca68e9e753f6eb135 Author: Zhenlei Huang AuthorDate: 2024-09-03 10:25:26 +0000 Commit: Zhenlei Huang CommitDate: 2024-09-03 10:25:26 +0000 ena(4): Stop checking for failures from malloc(M_WAITOK) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D45852 --- sys/dev/ena/ena_rss.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sys/dev/ena/ena_rss.c b/sys/dev/ena/ena_rss.c index d90a7fbb253a..41fa9c62f94a 100644 --- a/sys/dev/ena/ena_rss.c +++ b/sys/dev/ena/ena_rss.c @@ -279,12 +279,9 @@ ena_rss_indir_init(struct ena_adapter *adapter) struct ena_indir *indir = adapter->rss_indir; int rc; - if (indir == NULL) { + if (indir == NULL) adapter->rss_indir = indir = malloc(sizeof(struct ena_indir), M_DEVBUF, M_WAITOK | M_ZERO); - if (indir == NULL) - return (ENOMEM); - } rc = ena_rss_indir_get(adapter, indir->table); if (rc != 0) {