Message ID | 20210315173656.17.I199737f1a193fd768bb28bbee8847992f346edbe@changeid |
---|---|
State | Accepted |
Commit | ad66323a58cb6279aa9e8ba521a4daf25d0cbe79 |
Delegated to: | Simon Glass |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=mNKVOAIX; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DzPVS0FMrz9sR4 for <incoming@patchwork.ozlabs.org>; Mon, 15 Mar 2021 16:04:47 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7E27682A69; Mon, 15 Mar 2021 06:02:28 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="mNKVOAIX"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 22B3882A52; Mon, 15 Mar 2021 06:01:56 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 8894282A0F for <u-boot@lists.denx.de>; Mon, 15 Mar 2021 06:01:50 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-pj1-x1034.google.com with SMTP id kr3-20020a17090b4903b02900c096fc01deso14068267pjb.4 for <u-boot@lists.denx.de>; Sun, 14 Mar 2021 22:01:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=pPwTARzdu/0fEGzsxVlw8teqIUSEAq+0bGdbzPZm0WA=; b=mNKVOAIXGdab7QtyhqGQVk5sst33OOZ7rwExIWOxnLWEK7gw7thR4Z+FxOTTbms1r/ qPMsYTiY4eJV78USYKO2ThNCZq/aHi4kiYd86INGCGfPN1YX/Fw4lMB+w6fVdr37vTSn ExsX5mei9khxsEAqDjqttSnnE7Jy3C+4H1SHE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=pPwTARzdu/0fEGzsxVlw8teqIUSEAq+0bGdbzPZm0WA=; b=fJgo5N/kRgSla9T3If2GhOqTDQq/woPJ9t6qk64dyuUdFLsLTF6t6TQu3cGAfPouMg Avy+G2eoj/sBfIPPP2vi4+vWMETKYYSwWs+6vlazusghRPovHq+pNdEq8XhXZdRvplA/ bhXndIKXV6E5WWlVQlJsW157miP+TH2P42hLqW06dZPI6uOLDZpVU7uQnJFutQqFqEtG u1ueqCsx0sEp2Z50x9urojNoP9CbaRJyxy0Xo52scg567KOiUG/50vcAn9RBZmJt98n1 PR7sRPMaKSXW6eqMBRWD4J5rtdDtUKOGV8/2+Iq+G7cVKfddeXxRwVkbxkos0GaOEs0K hScA== X-Gm-Message-State: AOAM533YDVMiD1VMH9yFk5bAnASGMVYklkl7edILm8amu7WZ8ZggoSpp I/GZ7t03uxrWvFqCnEXWbvhfd+5VNCmQidDA X-Google-Smtp-Source: ABdhPJzx1MpECjD0uURRnveLwQ1ZOLU5UWQZ0YjXPB9i/sWHpRsS4GiewJi/0MXdELJwhnzY+9fK2w== X-Received: by 2002:a17:90a:8913:: with SMTP id u19mr10828219pjn.59.1615784508965; Sun, 14 Mar 2021 22:01:48 -0700 (PDT) Received: from sjg1.roam.corp.google.com (85.72.69.111.dynamic.snap.net.nz. [111.69.72.85]) by smtp.gmail.com with ESMTPSA id n10sm1921467pjo.15.2021.03.14.22.01.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Mar 2021 22:01:48 -0700 (PDT) From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Cc: Bin Meng <bmeng.cn@gmail.com>, Simon Glass <sjg@chromium.org>, Stefan Reinauer <reinauer@chromium.org> Subject: [PATCH 17/34] cbfs: Drop unnecessary cast in file_cbfs_fill_cache() Date: Mon, 15 Mar 2021 18:00:17 +1300 Message-Id: <20210315173656.17.I199737f1a193fd768bb28bbee8847992f346edbe@changeid> X-Mailer: git-send-email 2.31.0.rc2.261.g7f71774620-goog In-Reply-To: <20210315050034.1934660-1-sjg@chromium.org> References: <20210315050034.1934660-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.102.4 at phobos.denx.de X-Virus-Status: Clean |
Series |
x86: Enhancements for booting from coreboot
|
expand
|
The results of malloc() are a void * and so this cast is unnecessary. Drop
it.
Signed-off-by: Simon Glass <sjg@chromium.org>
---
fs/cbfs/cbfs.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
Applied to u-boot-dm/next, thanks!
diff --git a/fs/cbfs/cbfs.c b/fs/cbfs/cbfs.c index 443a148e3f1..415ea28b871 100644 --- a/fs/cbfs/cbfs.c +++ b/fs/cbfs/cbfs.c @@ -202,8 +202,7 @@ static int file_cbfs_fill_cache(struct cbfs_priv *priv, int size, int align) int used; int ret; - node = (struct cbfs_cachenode *) - malloc(sizeof(struct cbfs_cachenode)); + node = malloc(sizeof(struct cbfs_cachenode)); if (!node) return -ENOMEM; ret = file_cbfs_next_file(priv, start, size, align, node,
The results of malloc() are a void * and so this cast is unnecessary. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org> --- fs/cbfs/cbfs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)