From patchwork Mon Mar 20 11:07:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 9633833 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 30EAC6020B for ; Mon, 20 Mar 2017 11:10:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2546B27F89 for ; Mon, 20 Mar 2017 11:10:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1898527FAC; Mon, 20 Mar 2017 11:10:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1FF8B27F89 for ; Mon, 20 Mar 2017 11:10:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753979AbdCTLJe (ORCPT ); Mon, 20 Mar 2017 07:09:34 -0400 Received: from webbox1416.server-home.net ([77.236.96.61]:36352 "EHLO webbox1416.server-home.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754205AbdCTLIP (ORCPT ); Mon, 20 Mar 2017 07:08:15 -0400 Received: from imapserver.systec-electronic.com (unknown [212.185.67.146]) by webbox1416.server-home.net (Postfix) with ESMTPA id 0E12727A592 for ; Mon, 20 Mar 2017 12:07:23 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by imapserver.systec-electronic.com (Postfix) with ESMTP id E2882DA0A43; Mon, 20 Mar 2017 12:07:22 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at imapserver.systec-electronic.com Received: from imapserver.systec-electronic.com ([127.0.0.1]) by localhost (imapserver.systec-electronic.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id H95yFXTlLGag; Mon, 20 Mar 2017 12:07:20 +0100 (CET) Received: from localhost.localdomain (ws-stein.systec.local [192.168.10.116]) by imapserver.systec-electronic.com (Postfix) with ESMTP id 95436DA0A50; Mon, 20 Mar 2017 12:07:20 +0100 (CET) From: Alexander Stein To: linux-mmc@vger.kernel.org Cc: Alexander Stein Subject: [PATCH 2/2] mmc-utils: Check for ext_csd_rev only once Date: Mon, 20 Mar 2017 12:07:09 +0100 Message-Id: <20170320110709.31079-2-alexander.stein@systec-electronic.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170320110709.31079-1-alexander.stein@systec-electronic.com> References: <20170320110709.31079-1-alexander.stein@systec-electronic.com> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Alexander Stein --- mmc_cmds.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/mmc_cmds.c b/mmc_cmds.c index 728ad77..d7215bb 100644 --- a/mmc_cmds.c +++ b/mmc_cmds.c @@ -1736,19 +1736,10 @@ int do_read_extcsd(int nargs, char **argv) if (ext_csd_rev >= 7) { printf("eMMC Firmware Version: %s\n", (char*)&ext_csd[EXT_CSD_FIRMWARE_VERSION]); - } - - if (ext_csd_rev >= 7) { printf("eMMC Life Time Estimation A [EXT_CSD_DEVICE_LIFE_TIME_EST_TYP_A]: 0x%02x\n", ext_csd[EXT_CSD_DEVICE_LIFE_TIME_EST_TYP_A]); - } - - if (ext_csd_rev >= 7) { printf("eMMC Life Time Estimation B [EXT_CSD_DEVICE_LIFE_TIME_EST_TYP_B]: 0x%02x\n", ext_csd[EXT_CSD_DEVICE_LIFE_TIME_EST_TYP_B]); - } - - if (ext_csd_rev >= 7) { printf("eMMC Pre EOL information [EXT_CSD_PRE_EOL_INFO]: 0x%02x\n", ext_csd[EXT_CSD_PRE_EOL_INFO]); }