From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Daley Subject: [PATCH 07/29] libxc: remove pointless null pointer check in xc_interface_open_common Date: Wed, 30 Oct 2013 20:51:43 +1300 Message-ID: <1383119525-26033-8-git-send-email-mattjd@gmail.com> References: <1383119525-26033-1-git-send-email-mattjd@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1383119525-26033-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.xen.org Cc: Matthew Daley , Ian Jackson , Ian Campbell , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org xch is guaranteed non-null here. Coverity-ID: 1055944 Signed-off-by: Matthew Daley --- tools/libxc/xc_private.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libxc/xc_private.c b/tools/libxc/xc_private.c index a260257..524862e 100644 --- a/tools/libxc/xc_private.c +++ b/tools/libxc/xc_private.c @@ -189,7 +189,7 @@ static struct xc_interface_core *xc_interface_open_common(xentoollog_logger *log err_put_iface: xc_osdep_put(&xch->osdep); err: - if (xch) xtl_logger_destroy(xch->error_handler_tofree); + xtl_logger_destroy(xch->error_handler_tofree); if (xch != &xch_buf) free(xch); return NULL; } -- 1.7.10.4