projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a12e23
)
x86emul: drop stray NULL check
author
Jan Beulich
<jbeulich@suse.com>
Thu, 8 Dec 2016 11:21:56 +0000
(12:21 +0100)
committer
Jan Beulich
<jbeulich@suse.com>
Thu, 8 Dec 2016 11:21:56 +0000
(12:21 +0100)
->read is required to be non-NULL, and is not being checked anywhere else.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/x86_emulate/x86_emulate.c
patch
|
blob
|
history
diff --git
a/xen/arch/x86/x86_emulate/x86_emulate.c
b/xen/arch/x86/x86_emulate/x86_emulate.c
index 7092c4f25deb0895ea17e7fcfd5e204a0039d3ee..22b8dc89005d4d3d8414cd7f3ba93f21daa4d88d 100644
(file)
--- a/
xen/arch/x86/x86_emulate/x86_emulate.c
+++ b/
xen/arch/x86/x86_emulate/x86_emulate.c
@@
-1686,8
+1686,6
@@
static int inject_swint(enum x86_swint_type type,
((ctxt->regs->eflags & EFLG_IOPL) != EFLG_IOPL) )
goto raise_exn;
- fail_if(ops->read == NULL);
-
/*
* Read all 8/16 bytes so the idtr limit check is applied properly
* to this entry, even though we only end up looking at the 2nd