riscv: Move the initialization of the field inside the structure for consistency

gitignore-build
Megan Wachs 2017-06-07 17:32:31 -07:00 committed by Palmer Dabbelt
parent 459b39ec67
commit c3b344d1c0
1 changed files with 1 additions and 5 deletions

View File

@ -318,13 +318,9 @@ static dmi_status_t dmi_scan(struct target *target, uint16_t *address_in,
struct scan_field field = {
.num_bits = info->abits + DTM_DMI_OP_LENGTH + DTM_DMI_DATA_LENGTH,
.out_value = out,
.in_value = in
};
// We need to always do this so that we can
// get the OP result, even if we don't care about
// the data itself.
field.in_value = in;
assert(info->abits != 0);
buf_set_u64(out, DTM_DMI_OP_OFFSET, DTM_DMI_OP_LENGTH, op);