[gdb/tui] Make translate return entry->value instead of entry
authorTom de Vries <tdevries@suse.de>
Wed, 12 Jul 2023 10:07:40 +0000 (12:07 +0200)
committerTom de Vries <tdevries@suse.de>
Wed, 12 Jul 2023 10:07:40 +0000 (12:07 +0200)
commit664ac93fa86a974aaf42497a58bc1c05dde09909
tree2a1b88ed56a0d881cd5550df4ec2549227631621
parent275cef134913f0b96240876576502273ae0bdb6d
[gdb/tui] Make translate return entry->value instead of entry

The only use of "entry = translate (...)" is entry->value.

Simplify using the function by returning entry->value instead.

Tested on x86_64-linux.

Approved-By: Tom Tromey <tom@tromey.com>
gdb/tui/tui-win.c