# HG changeset patch # User Elliott Sales de Andrade # Date 1272141546 0 # Node ID 4dc2e7aadffe600266424545a9269521f8f01d7c # Parent 3affd35086124b16b2f3a05444ae486a1cf6ef42 All these processing functions are called from places where dc != NULL, so there's no need to waste time checking that. diff -r 3affd3508612 -r 4dc2e7aadffe libpurple/protocols/msn/directconn.c --- a/libpurple/protocols/msn/directconn.c Sat Apr 24 20:37:49 2010 +0000 +++ b/libpurple/protocols/msn/directconn.c Sat Apr 24 20:39:06 2010 +0000 @@ -626,8 +626,6 @@ if (purple_debug_is_verbose()) purple_debug_info("msn", "msn_dc_send_foo %p\n", dc); - g_return_if_fail(dc != NULL); - p = msn_dc_new_packet(); p->length = 8; @@ -644,8 +642,6 @@ const gchar *h; guint32 len; - g_return_if_fail(dc != NULL); - p = msn_dc_new_packet(); p->length = 4 + DC_PACKET_HEADER_SIZE; @@ -675,8 +671,6 @@ const gchar *h; guint32 len; - g_return_if_fail(dc != NULL); - p = msn_dc_new_packet(); p->length = 4 + DC_PACKET_HEADER_SIZE;