From: Yauheni Kaliuta Date: Sun, 11 Oct 2009 15:27:27 +0000 (+0300) Subject: Do not replace virt2phys with the default one if it was assigned X-Git-Tag: v0.3.0-rc0~93 X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=commitdiff_plain;h=bc0cc62afd7e84432727f470f74d4fb2b405ce35 Do not replace virt2phys with the default one if it was assigned Signed-off-by: Yauheni Kaliuta --- diff --git a/src/target/target.c b/src/target/target.c index 2b7d7e2c63..7763b95644 100644 --- a/src/target/target.c +++ b/src/target/target.c @@ -698,7 +698,6 @@ int target_init(struct command_context_s *cmd_ctx) { target->type->virt2phys = default_virt2phys; } - target->type->virt2phys = default_virt2phys; /* a non-invasive way(in terms of patches) to add some code that * runs before the type->write/read_memory implementation */