Do not replace virt2phys with the default one if it was assigned

Signed-off-by: Yauheni Kaliuta <y.kaliuta@gmail.com>
__archive__
Yauheni Kaliuta 2009-10-11 18:27:27 +03:00 committed by Øyvind Harboe
parent 79bf27da71
commit bc0cc62afd
1 changed files with 0 additions and 1 deletions

View File

@ -698,7 +698,6 @@ int target_init(struct command_context_s *cmd_ctx)
{ {
target->type->virt2phys = default_virt2phys; target->type->virt2phys = default_virt2phys;
} }
target->type->virt2phys = default_virt2phys;
/* a non-invasive way(in terms of patches) to add some code that /* a non-invasive way(in terms of patches) to add some code that
* runs before the type->write/read_memory implementation * runs before the type->write/read_memory implementation
*/ */