mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
libxc: remove pointless null pointer check
ctxt_buf is guaranteed non-null here. Signed-off-by: Matthew Daley <mattjd@gmail.com> Acked-by: Ian Campbell <ian.campbell@citrix.com>
This commit is contained in:
1 parent
d621f95d6a
commit
570e223242
1 file changed
+1
-2
@@ -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;
|
||||
}
|
||||
|
||||