From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Daley Subject: [PATCH 5/6] xl: remove pointless null pointer check Date: Fri, 8 Nov 2013 13:45:11 +1300 Message-ID: <1383871513-11316-6-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.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1VeaDu-0007B9-RW for xen-devel@lists.xenproject.org; Fri, 08 Nov 2013 00:46:55 +0000 Received: by mail-ie0-f171.google.com with SMTP id tp5so2226549ieb.16 for ; Thu, 07 Nov 2013 16:46:52 -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 poolinfo is guaranteed non-null here. Signed-off-by: Matthew Daley --- tools/libxl/xl_cmdimpl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index 40feb7d..5bd9b15 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -5095,8 +5095,8 @@ static int sched_domain_output(libxl_scheduler sched, int (*output)(int), break; } } - if (poolinfo) - libxl_cpupoolinfo_list_free(poolinfo, n_pools); + + libxl_cpupoolinfo_list_free(poolinfo, n_pools); return 0; } -- 1.7.10.4