libxc: remove pointless null pointer check
authorMatthew Daley <mattjd@gmail.com>
Fri, 8 Nov 2013 00:45:10 +0000 (13:45 +1300)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 11 Nov 2013 16:13:54 +0000 (16:13 +0000)
ctxt_buf is guaranteed non-null here.

Signed-off-by: Matthew Daley <mattjd@gmail.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxc/xc_domain.c

index 2cea6e384157757363949a1b291c8243188eafc9..1ccafc5185bce07d6c0a189882ebc6ea2cd74696 100644 (file)
@@ -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;
 }