aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Stein <alexander.stein@systec-electronic.com>2017-03-20 14:43:01 +0100
committerChris Ball <chris@printf.net>2017-03-20 09:58:49 -0400
commit37c86e60c0442fef570b75cd81aeb1db4d0cbafd (patch)
tree6b1a6fa3b33f122064fc8f0600af45fb4b8b8645
parentc22a92f948983d414806e0005cf6e24cda2fffbf (diff)
downloadmmc-utils-37c86e60c0442fef570b75cd81aeb1db4d0cbafd.tar.gz
mmc-utils: Check for ext_csd_rev only once
Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com> Signed-off-by: Chris Ball <chris@printf.net>
-rw-r--r--mmc_cmds.c9
1 files changed, 0 insertions, 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]);
}