amd64: remove additional comparison for validity of a register number.
authorWalfred Tedeschi <walfred.tedeschi@intel.com>
Fri, 27 Jan 2017 14:19:12 +0000 (15:19 +0100)
committerWalfred Tedeschi <walfred.tedeschi@intel.com>
Fri, 27 Jan 2017 14:20:12 +0000 (15:20 +0100)
commit7005d26ac72abbf12e02947ab87dbb3804f326a8
tree8ff4f102d8056f1f2403ff47915c589177d94d9b
parent239b6d10954b18ce089e9c3a667e7f2df3655476
amd64: remove additional comparison for validity of a register number.

Second part of the && is already guaranteed in the "regnum < num_regs"
due to comparison above.

2017-01-27  Walfred Tedeschi  <walfred.tedeschi@intel.com>

* amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
that checks validity of a register number.
gdb/ChangeLog
gdb/amd64-nat.c