From patchwork Fri Jul 24 21:13:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rini X-Patchwork-Id: 1335985 X-Patchwork-Delegate: sr@denx.de Return-Path: 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=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=konsulko.com Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (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) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BD24K6Z7Cz9sRR for ; Sat, 25 Jul 2020 07:13:35 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2AF5C821F0; Fri, 24 Jul 2020 23:13:28 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 8F9FE82201; Fri, 24 Jul 2020 23:13:26 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-qt1-f194.google.com (mail-qt1-f194.google.com [209.85.160.194]) (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 C6A53821C9 for ; Fri, 24 Jul 2020 23:13:23 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=tom.rini@gmail.com Received: by mail-qt1-f194.google.com with SMTP id h21so1535167qtp.11 for ; Fri, 24 Jul 2020 14:13:23 -0700 (PDT) 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; bh=rpW2syw1FVVFogvOyJeJBS9YwiLGOOiAMaIH6m285TI=; b=D7JTVALiTsM4FWShU0FpFHVYpr8qMBbff1emgABz5CGNGicBieFvfugM+d+TyneJx4 npvW01Vp0kNemN73KmydPK3p12wS12/IMKFg3FcxH+tfc4+jQrNxR+ytkA8vUCch+Zar rxT0YDMfnkkjwPSTUy9NtO6wFA+yi6v13e5Gq6gQ3EV61Gjh2GDxcaYDCdSvrVggYRcN jtBLahG0xbyHFn8X4LEBpNnI3tZm2gtX/mAwacTtCMlWJy+zN9ZoYMGCoWGM0w6nggUa ZomVDlrWqzLDptzckXEm8+5LMse9qTJw6f/2NVpKGZpp+Cy301Py59Dr40QOK7ziwkaU 5hFw== X-Gm-Message-State: AOAM532exNsE57yvpetvsxJ/hqC4F+xL1KTefm5K04Z98TMJ7nXxB59m wMigYBjcmmAbUIGajQlsnqOqGs0= X-Google-Smtp-Source: ABdhPJz5d5oUD7bUe68WePeZqLqgOC7Ig7Ag1GWEo98kYQ2FRMwe4o3Px9m1BwfFMWSFVzbF3u560w== X-Received: by 2002:ac8:665a:: with SMTP id j26mr11224595qtp.60.1595625201855; Fri, 24 Jul 2020 14:13:21 -0700 (PDT) Received: from bill-the-cat.local (2606-a000-1401-8080-d19a-b3fa-f747-8f4e.inf6.spectrum.com. [2606:a000:1401:8080:d19a:b3fa:f747:8f4e]) by smtp.gmail.com with ESMTPSA id b2sm7882300qkf.122.2020.07.24.14.13.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jul 2020 14:13:20 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Cc: Joel Johnson , Stefan Roese Subject: [PATCH] mvebu: bubt: Drop dead code Date: Fri, 24 Jul 2020 17:13:17 -0400 Message-Id: <20200724211317.2678-1-trini@konsulko.com> X-Mailer: git-send-email 2.17.1 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean The code around CONFIG_SYS_MMC_ENV_PART has been untested since merge. This can be seen by it referencing 'mmc->part_num' which was migrated elsewhere prior to this code being merged. Cc: Joel Johnson Cc: Stefan Roese Signed-off-by: Tom Rini Acked-by: Stefan Roese Reviewed-by: Stefan Roese --- cmd/mvebu/bubt.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/cmd/mvebu/bubt.c b/cmd/mvebu/bubt.c index a27b0df8ae78..85ae588676fe 100644 --- a/cmd/mvebu/bubt.c +++ b/cmd/mvebu/bubt.c @@ -176,16 +176,6 @@ static int mmc_burn_image(size_t image_size) return err; } -#ifdef CONFIG_SYS_MMC_ENV_PART - if (mmc->part_num != CONFIG_SYS_MMC_ENV_PART) { - err = mmc_switch_part(mmc_dev_num, CONFIG_SYS_MMC_ENV_PART); - if (err) { - printf("MMC partition switch failed\n"); - return err; - } - } -#endif - /* SD reserves LBA-0 for MBR and boots from LBA-1, * MMC/eMMC boots from LBA-0 */ @@ -217,11 +207,6 @@ static int mmc_burn_image(size_t image_size) } printf("Done!\n"); -#ifdef CONFIG_SYS_MMC_ENV_PART - if (mmc->part_num != CONFIG_SYS_MMC_ENV_PART) - mmc_switch_part(mmc_dev_num, mmc->part_num); -#endif - return 0; }