From: Matthew Daley Date: Fri, 8 Nov 2013 00:45:10 +0000 (+1300) Subject: libxc: remove pointless null pointer check X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~6007 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=570e223242de00d9cf673d719cb68d28e4a1fcdd;p=xen.git libxc: remove pointless null pointer check ctxt_buf is guaranteed non-null here. Signed-off-by: Matthew Daley Acked-by: Ian Campbell --- diff --git a/tools/libxc/xc_domain.c b/tools/libxc/xc_domain.c index 2cea6e3841..1ccafc5185 100644 --- a/tools/libxc/xc_domain.c +++ b/tools/libxc/xc_domain.c @@ -444,8 +444,7 @@ int xc_domain_hvm_getcontext_partial(xc_interface *xch, ret = do_domctl(xch, &domctl); - if ( ctxt_buf ) - xc_hypercall_bounce_post(xch, ctxt_buf); + xc_hypercall_bounce_post(xch, ctxt_buf); return ret ? -1 : 0; }