]> rtime.felk.cvut.cz Git - jailhouse.git/commit
core: remove redundant test on error-code
authorBenjamin Block <bebl@mageta.org>
Wed, 19 Nov 2014 15:05:22 +0000 (16:05 +0100)
committerJan Kiszka <jan.kiszka@siemens.com>
Wed, 19 Nov 2014 17:44:08 +0000 (18:44 +0100)
commitfa54a47a432436d364c851ab7d543b0b9027eb7a
treebf9d4bcb2831b68da194ec2f2cb3921709b58e6a
parentb8f11dcf19343335b42c3c88aa6fa5cd00fb9e61
core: remove redundant test on error-code

The global error-state is checked before a call to cpu_init and checked
again in it. Because this happens under a lock and the global state is
never touched in cpu_init - or any sub-call -, the second check is
redundant and will always be true, thus remove it.

Signed-off-by: Benjamin Block <bebl@mageta.org>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
hypervisor/setup.c