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>
This commit is contained in:
Alexander Stein authored and Chris Ball committed 2017-03-20 09:58:49 -04:00
1 parent c22a92f948
commit 37c86e60c0
1 file changed
-9
-9
View File
@@ -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]);
}