From nobody Tue Sep 03 10:27:12 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 4WyhdF1tGjz5Mkfd; Tue, 03 Sep 2024 10:27:13 +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 4WyhdF0bKbz4sc7; Tue, 3 Sep 2024 10:27:13 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725359233; 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=vKkmutQweM84wV++iPj0ZYQGmckerRFDUOuZBhjOBoY=; b=pMVfF8hAm3BJnONpBu0pKTRxWeQcSP1PUSAbR/wCRUBLa/AZCr0SBoTYHJ/2kbQiC2k4g5 pvL8Vc6jDWpQAx+1yUSdXv1RkWRmMbudaXd1r9I4rMlg9i8MZVWW9OjB4PUGA5rmHLMe/3 /kHvzh5gE41e0zHsovgO65/YGP/khfPRVfRvIvxkr+RamYo6S32yUsVqa2MiRCnyW9Ik0E xD3jQooa5YLhKvDMXo3EBg++B14FlnDiO3u0o4a6inRla0IXaccwEPKSFTjkixrI9FPFdK Eewlu93tcm6JvRMnorUXVN2kFcVCNh9AJS0ZmpBEIlVUmYub5s3bpgNYkzEPhg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725359233; a=rsa-sha256; cv=none; b=FnEol6GoUH2zUKOomGVCZneaXL805j9Bq2zqEhCeoe1Cndyy1csKoSmTkJZK3SKChL1U0M Xz/N/zwRAuntP4FFMCBz1/5pfe759f0o38UxVkypm8ixwrK2/2gHFVihjkuueqGa7d6OKD 0kKKVTcdpj6Mt5YtpjJPeKX7kpMy4P2g51AS3T0cgPPEb8ffpFkS7xYOXRUqR7wFXPLvRd jN/rU8BlwXGeHjF5B35ms5EtiQDCv82oOtRhYLH1TRHNM+prS8kuc+GSVUTcRDWKohsEuE C/KHs8/E+1PVw9wd6uMKOE7Nt3kyhO+/KV1+6DYBCMQ863L+1WPjUpbB4+aJnw== 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=1725359233; 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=vKkmutQweM84wV++iPj0ZYQGmckerRFDUOuZBhjOBoY=; b=vjSnaQmICt7sNF6PeVw19l8L7yvaXFMLuThs/YPFXmCgMuxyXZf3QssGpb1y2VOfGZwEQb GvtZ70S2F/8lGcrupAGodN+ihsBti9Q4xBsmYFRfnIFxy7bgjTvMeu7n+kqSxuLRJiE4N1 Yhs8NbzKajPmhf9vv8hCBiU1QCwuAiYhaMzxglVIW1cbzthLeOXgIwSGasrrCzFPZQP/3Z O+rzjeL0MlACuGcYNgklSV9GuvWtHOagOxgnluMF4ObpC+LZBl1Z3JIifGcSlPiQFake0e KlJijXwWDKQNXB5+Q0GoH7sNQMhdEAU2R8t1ZLtKRGEP8olSi2ReM5mm5ZPlQA== 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 4WyhdF03KnzcVR; Tue, 3 Sep 2024 10:27:13 +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 483ARC9f010040; Tue, 3 Sep 2024 10:27:12 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 483ARCjh010034; Tue, 3 Sep 2024 10:27:12 GMT (envelope-from git) Date: Tue, 3 Sep 2024 10:27:12 GMT Message-Id: <202409031027.483ARCjh010034@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: d1a89bd9b6eb - main - flexspi: 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: d1a89bd9b6eb1524902b619fa092c7d6de63e623 Auto-Submitted: auto-generated The branch main has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=d1a89bd9b6eb1524902b619fa092c7d6de63e623 commit d1a89bd9b6eb1524902b619fa092c7d6de63e623 Author: Zhenlei Huang AuthorDate: 2024-09-03 10:25:27 +0000 Commit: Zhenlei Huang CommitDate: 2024-09-03 10:25:27 +0000 flexspi: Stop checking for failures from malloc(M_WAITOK) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D45852 --- sys/dev/flash/flexspi/flex_spi.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/sys/dev/flash/flexspi/flex_spi.c b/sys/dev/flash/flexspi/flex_spi.c index 766a1cfaa332..9382b237ee71 100644 --- a/sys/dev/flash/flexspi/flex_spi.c +++ b/sys/dev/flash/flexspi/flex_spi.c @@ -781,12 +781,6 @@ flex_spi_attach(device_t dev) } sc->buf = malloc(sc->erasesize, SECTOR_BUFFER, M_WAITOK); - if (sc->buf == NULL) { - device_printf(sc->dev, "Unable to set up allocate internal buffer\n"); - flex_spi_detach(dev); - return (ENOMEM); - } - /* Move it to per-flash */ sc->disk = disk_alloc(); sc->disk->d_open = flex_spi_open;