uprobes/x86: Cleanup the usage of UPROBE_FIX_IP/UPROBE_FIX_CALL
authorOleg Nesterov <oleg@redhat.com>
Fri, 25 Apr 2014 16:53:32 +0000 (18:53 +0200)
committerOleg Nesterov <oleg@redhat.com>
Wed, 30 Apr 2014 17:10:40 +0000 (19:10 +0200)
commit83cd591485e558ab70aed45ce7261ce3f5ee8746
tree7ab3da68050aaeba3646426a3a7db3947d3bf673
parent1dc76e6eacef271230d9ff6fd0f91824bda03f44
uprobes/x86: Cleanup the usage of UPROBE_FIX_IP/UPROBE_FIX_CALL

Now that UPROBE_FIX_IP/UPROBE_FIX_CALL are mutually exclusive we can
use a single "fix_ip_or_call" enum instead of 2 fix_* booleans. This
way the logic looks more understandable and clean to me.

While at it, join "case 0xea" with other "ip is correct" ret/lret cases.
Also change default_post_xol_op() to use "else if" for the same reason.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
arch/x86/kernel/uprobes.c