Merge pull request #811 from riscv/address_in

target/riscv: Remove unused address_in variable.
This commit is contained in:
Tim Newsome 2023-03-13 08:06:25 -07:00 committed by GitHub
commit 3e7a683980
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -562,7 +562,6 @@ static int dmi_op_timeout(struct target *target, uint32_t *data_in,
select_dmi(target);
dmi_status_t status;
uint32_t address_in;
if (dmi_busy_encountered)
*dmi_busy_encountered = false;
@ -615,7 +614,7 @@ static int dmi_op_timeout(struct target *target, uint32_t *data_in,
* Note that NOP can result in a 'busy' result as well, but that would be
* noticed on the next DMI access we do. */
while (1) {
status = dmi_scan(target, &address_in, data_in, DMI_OP_NOP, address, 0,
status = dmi_scan(target, NULL, data_in, DMI_OP_NOP, address, 0,
false);
if (status == DMI_STATUS_BUSY) {
increase_dmi_busy_delay(target);