|
@@ -64,8 +64,7 @@ static int set_update_marker(struct ubi_device *ubi, struct ubi_volume *vol)
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
- memcpy(&vtbl_rec, &ubi->vtbl[vol->vol_id],
|
|
|
- sizeof(struct ubi_vtbl_record));
|
|
|
+ vtbl_rec = ubi->vtbl[vol->vol_id];
|
|
|
vtbl_rec.upd_marker = 1;
|
|
|
|
|
|
mutex_lock(&ubi->device_mutex);
|
|
@@ -93,8 +92,7 @@ static int clear_update_marker(struct ubi_device *ubi, struct ubi_volume *vol,
|
|
|
|
|
|
dbg_gen("clear update marker for volume %d", vol->vol_id);
|
|
|
|
|
|
- memcpy(&vtbl_rec, &ubi->vtbl[vol->vol_id],
|
|
|
- sizeof(struct ubi_vtbl_record));
|
|
|
+ vtbl_rec = ubi->vtbl[vol->vol_id];
|
|
|
ubi_assert(vol->upd_marker && vtbl_rec.upd_marker);
|
|
|
vtbl_rec.upd_marker = 0;
|
|
|
|