Signed-off-by: Luc Verhaegen <[email protected]>
---
 meminfo.c |   32 ++++++++++----------------------
 1 files changed, 10 insertions(+), 22 deletions(-)

diff --git a/meminfo.c b/meminfo.c
index a53c081..d4dd800 100644
--- a/meminfo.c
+++ b/meminfo.c
@@ -128,21 +128,6 @@ soc_version_read(void)
        return 0;
 }
 
-static int
-soc_version_check(void)
-{
-       switch (soc_version) {
-       case SUNXI_SOC_SUN4I:
-       case SUNXI_SOC_SUN5I:
-       case SUNXI_SOC_SUN7I:
-               return 0;
-       default:
-               fprintf(stderr, "Error: unknown or unhandled Soc: 0x%04X\n",
-                       soc_version);
-               return -1;
-       }
-}
-
 /*
  * Read DRAM clock.
  */
@@ -420,13 +405,16 @@ main(int argc, char *argv[])
        ret = soc_version_read();
        if (ret)
                return ret;
-       ret = soc_version_check();
-       if (ret)
-               return ret;
-
-       sun4i_dram_para_print(uboot);
-
-       return 0;
+       switch (soc_version) {
+       case SUNXI_SOC_SUN4I:
+       case SUNXI_SOC_SUN5I:
+       case SUNXI_SOC_SUN7I:
+               return sun4i_dram_para_print(uboot);
+       default:
+               fprintf(stderr, "Error: unknown or unhandled Soc: 0x%04X\n",
+                       soc_version);
+               return -1;
+       }
 
  usage:
        fprintf(stderr, "Error: wrong argument(s).\n");
-- 
1.7.7

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to