From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Daley Subject: [PATCH 4/6] libxc: remove pointless null pointer check Date: Fri, 8 Nov 2013 13:45:10 +1300 Message-ID: <1383871513-11316-5-git-send-email-mattjd@gmail.com> References: <1383871513-11316-1-git-send-email-mattjd@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1VeaDf-00070c-9V for xen-devel@lists.xenproject.org; Fri, 08 Nov 2013 00:46:39 +0000 Received: by mail-ie0-f170.google.com with SMTP id at1so2234168iec.29 for ; Thu, 07 Nov 2013 16:46:36 -0800 (PST) In-Reply-To: <1383871513-11316-1-git-send-email-mattjd@gmail.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: xen-devel@lists.xen.org, Matthew Daley , Ian Jackson , Ian Campbell , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org ctxt_buf is guaranteed non-null here. Signed-off-by: Matthew Daley --- tools/libxc/xc_domain.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/libxc/xc_domain.c b/tools/libxc/xc_domain.c index 2cea6e3..1ccafc5 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; } -- 1.7.10.4