mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2025-02-17 02:31:41 +01:00
Drop unused readonly variable.
(Logical change 1.299)
This commit is contained in:
parent
2c08119b53
commit
399f120c96
1 changed files with 2 additions and 6 deletions
|
@ -344,8 +344,8 @@ tdep_access_reg (struct cursor *c, unw_regnum_t reg, unw_word_t *valp,
|
|||
{
|
||||
ia64_loc_t loc, reg_loc, nat_loc;
|
||||
unw_word_t nat, mask, val;
|
||||
int ret, readonly = 0;
|
||||
uint8_t nat_bitnr;
|
||||
int ret;
|
||||
|
||||
switch (reg)
|
||||
{
|
||||
|
@ -539,11 +539,7 @@ tdep_access_reg (struct cursor *c, unw_regnum_t reg, unw_word_t *valp,
|
|||
}
|
||||
|
||||
if (write)
|
||||
{
|
||||
if (readonly)
|
||||
return -UNW_EREADONLYREG;
|
||||
return ia64_put (c, loc, *valp);
|
||||
}
|
||||
return ia64_put (c, loc, *valp);
|
||||
else
|
||||
return ia64_get (c, loc, valp);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue