From patchwork Mon Mar 20 13:43:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 9634225 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 29071602D6 for ; Mon, 20 Mar 2017 13:52:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1CB6226E8A for ; Mon, 20 Mar 2017 13:52:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 10F5427F94; Mon, 20 Mar 2017 13:52:17 +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 3EDDF27F81 for ; Mon, 20 Mar 2017 13:52:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754663AbdCTNuv (ORCPT ); Mon, 20 Mar 2017 09:50:51 -0400 Received: from webbox1416.server-home.net ([77.236.96.61]:54242 "EHLO webbox1416.server-home.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754653AbdCTNuu (ORCPT ); Mon, 20 Mar 2017 09:50:50 -0400 Received: from imapserver.systec-electronic.com (unknown [212.185.67.146]) by webbox1416.server-home.net (Postfix) with ESMTPA id 2C6BF27A592; Mon, 20 Mar 2017 14:43:30 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by imapserver.systec-electronic.com (Postfix) with ESMTP id 23DDCDA0A43; Mon, 20 Mar 2017 14:43:30 +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 WGtwf8p88qsg; Mon, 20 Mar 2017 14:43:26 +0100 (CET) Received: from localhost.localdomain (ws-stein.systec.local [192.168.10.116]) by imapserver.systec-electronic.com (Postfix) with ESMTP id 9A2BDDA0A53; Mon, 20 Mar 2017 14:43:26 +0100 (CET) From: Alexander Stein To: Chris Ball , linux-mmc@vger.kernel.org Cc: Alexander Stein Subject: [RESEND 2/2] mmc-utils: Check for ext_csd_rev only once Date: Mon, 20 Mar 2017 14:43:01 +0100 Message-Id: <20170320134301.2909-2-alexander.stein@systec-electronic.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170320134301.2909-1-alexander.stein@systec-electronic.com> References: <20170320134301.2909-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 Reviewed-by: Jaehoon Chung --- 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]); }