From: Jan Beulich Date: Thu, 8 Dec 2016 11:21:56 +0000 (+0100) Subject: x86emul: drop stray NULL check X-Git-Tag: archive/raspbian/4.11.1-1+rpi1~1^2~66^2~3224 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=7bb084c23b1ac692b57f15158e2817bee72d5224;p=xen.git x86emul: drop stray NULL check ->read is required to be non-NULL, and is not being checked anywhere else. Signed-off-by: Jan Beulich Reviewed-by: Andrew Cooper --- diff --git a/xen/arch/x86/x86_emulate/x86_emulate.c b/xen/arch/x86/x86_emulate/x86_emulate.c index 7092c4f25d..22b8dc8900 100644 --- 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