rst: Don't seek core file for magic

This is done by open_image_ro in the restorer bootstrap preparation code.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Pavel Emelyanov 2012-04-05 15:44:44 +04:00
parent 056f41fb46
commit 4436f8afd8

View file

@ -320,7 +320,6 @@ long restore_task(struct task_restore_core_args *args)
write_hex_n((long)vma_entry);
#endif
sys_lseek(args->fd_core, MAGIC_OFFSET, SEEK_SET);
ret = sys_read(args->fd_core, core_entry, sizeof(*core_entry));
if (ret != sizeof(*core_entry)) {
write_num_n(__LINE__);