]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: MMU: Clean up the error handling of walk_addr_generic()
authorTakuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
Thu, 30 Jun 2011 16:34:56 +0000 (01:34 +0900)
committerAvi Kivity <avi@redhat.com>
Tue, 12 Jul 2011 10:16:42 +0000 (13:16 +0300)
commit1fb1a8d7eb1b2bcaa4775f95fe373332c4e42da0
treeb4eb6e5dcb032e8bbf499f6692f65e7475c7ca35
parent88e2975c7828c02f720c8e44795c2170dc1c575c
KVM: MMU: Clean up the error handling of walk_addr_generic()

Avoid two step jump to the error handling part.  This eliminates the use
of the variables present and rsvd_fault.

We also use the const type qualifier to show that write/user/fetch_fault
do not change in the function.

Both of these were suggested by Ingo Molnar.

Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Takuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/paging_tmpl.h