From 816c019ef86e71157b319c7cf4b0bd632996b87c Mon Sep 17 00:00:00 2001 From: James Booth Date: Thu, 14 Mar 2013 21:20:18 +0000 Subject: [PATCH] Removed unnecessary NULL checks --- src/xmpp/iq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xmpp/iq.c b/src/xmpp/iq.c index 7470abeb..b3053c5a 100644 --- a/src/xmpp/iq.c +++ b/src/xmpp/iq.c @@ -373,7 +373,7 @@ _iq_handle_discoinfo_result(xmpp_conn_t * const conn, xmpp_stanza_t * const stan log_debug("Recieved diso#info response"); const char *id = xmpp_stanza_get_attribute(stanza, STANZA_ATTR_ID); - if ((id != NULL) && (g_strcmp0(id, "discoinforeq") == 0)) { + if (g_strcmp0(id, "discoinforeq") == 0) { cons_show("GOT DISO INFO RESULT"); } else if ((id != NULL) && (g_str_has_prefix(id, "disco"))) { log_debug("Response to query: %s", id); @@ -493,7 +493,7 @@ _iq_handle_discoitems_result(xmpp_conn_t * const conn, xmpp_stanza_t * const sta const char *id = xmpp_stanza_get_attribute(stanza, STANZA_ATTR_ID); const char *from = xmpp_stanza_get_attribute(stanza, STANZA_ATTR_FROM); - if ((id != NULL) && (g_strcmp0(id, "confreq") == 0)) { + if (g_strcmp0(id, "confreq") == 0) { log_debug("Response to query: %s", id); GSList *rooms = NULL; xmpp_stanza_t *query = xmpp_stanza_get_child_by_name(stanza, STANZA_NAME_QUERY);