about summary refs log tree commit diff stats
path: root/src/xmpp
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-03-14 21:20:18 +0000
committerJames Booth <boothj5@gmail.com>2013-03-14 21:20:18 +0000
commit816c019ef86e71157b319c7cf4b0bd632996b87c (patch)
tree004d567408953bf4f217eb9643375e9b31512b44 /src/xmpp
parent31cd507d3c9782e4e1e2240348880c3166239391 (diff)
downloadprofani-tty-816c019ef86e71157b319c7cf4b0bd632996b87c.tar.gz
Removed unnecessary NULL checks
Diffstat (limited to 'src/xmpp')
-rw-r--r--src/xmpp/iq.c4
1 files 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);