]> git.sur5r.net Git - openocd/blobdiff - src/target/armv7m.c
target: clean up target memory allocation error messages
[openocd] / src / target / armv7m.c
index 1216a45fbe2564e3af9f5dd16dce8d43566e53d3..83335a584c59f3da638cd560f1c407b19a93927d 100644 (file)
@@ -139,9 +139,6 @@ int armv7m_restore_context(struct target *target)
                }
        }
 
-       if (armv7m->post_restore_context)
-               armv7m->post_restore_context(target);
-
        return ERROR_OK;
 }
 
@@ -530,7 +527,7 @@ struct reg_cache *armv7m_build_reg_cache(struct target *target)
        return cache;
 }
 
-int armv7m_setup_semihosting(struct target *target, int enable)
+static int armv7m_setup_semihosting(struct target *target, int enable)
 {
        /* nothing todo for armv7m */
        return ERROR_OK;