Avoid using arg pointer. am: 76a0b9f6a9 am: 7162c82740 am: 3169fc88c8
am: 3d5ff8ecfa

Change-Id: If9c5eda9b3348bbacba66aea8d2db9d35827d7fb
diff --git a/src/x86/Ginit.c b/src/x86/Ginit.c
index 4863c15..6748b55 100644
--- a/src/x86/Ginit.c
+++ b/src/x86/Ginit.c
@@ -162,10 +162,13 @@
     }
   else
     {
-      /* validate address */
-      const struct cursor *c = (const struct cursor *)arg;
-      if (c && c->validate && validate_mem(addr))
+      /* ANDROID support update. */
+#ifdef CONSERVATIVE_CHECKS
+      if (validate_mem(addr))
         return -1;
+#endif
+      /* End of ANDROID update. */
+
       /* ANDROID support update. */
 #ifdef UNW_LOCAL_ONLY
       if (map_local_is_readable (addr, sizeof(unw_word_t)))
diff --git a/src/x86_64/Ginit.c b/src/x86_64/Ginit.c
index 672b667..60d973b 100644
--- a/src/x86_64/Ginit.c
+++ b/src/x86_64/Ginit.c
@@ -179,11 +179,12 @@
     }
   else
     {
-      /* validate address */
-      const struct cursor *c = (const struct cursor *)arg;
-      if (likely (c != NULL) && unlikely (c->validate)
-          && unlikely (validate_mem (addr)))
+      /* ANDROID support update. */
+#ifdef CONSERVATIVE_CHECKS
+      if (unlikely (validate_mem (addr)))
         return -1;
+#endif
+      /* End of ANDROID update. */
 
       /* ANDROID support update. */
 #ifdef UNW_LOCAL_ONLY