]> xenbits.xensource.com Git - people/andrewcoop/xen.git/commitdiff
x86emul: drop stray NULL check
authorJan Beulich <jbeulich@suse.com>
Thu, 8 Dec 2016 11:21:56 +0000 (12:21 +0100)
committerJan 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

index 7092c4f25deb0895ea17e7fcfd5e204a0039d3ee..22b8dc89005d4d3d8414cd7f3ba93f21daa4d88d 100644 (file)
@@ -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