diff libpurple/protocols/qq/qq_trans.c @ 30413:7c871249318b

Fix some "Dead nested assignment"s and then kill off some useless variables related to them.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Sat, 14 Aug 2010 05:17:38 +0000
parents 7da3cf2530b7
children 351d07aefb09
line wrap: on
line diff
--- a/libpurple/protocols/qq/qq_trans.c	Sat Aug 14 03:55:19 2010 +0000
+++ b/libpurple/protocols/qq/qq_trans.c	Sat Aug 14 05:17:38 2010 +0000
@@ -138,10 +138,11 @@
 /* Remove a packet with seq from send trans */
 static void trans_remove(PurpleConnection *gc, qq_transaction *trans)
 {
-	qq_data *qd = (qq_data *)gc->proto_data;
+	qq_data *qd;
 
-	g_return_if_fail(gc != NULL && gc->proto_data != NULL);
+	g_return_if_fail(gc != NULL);
 	qd = (qq_data *) gc->proto_data;
+	g_return_if_fail(qd != NULL);
 
 	g_return_if_fail(trans != NULL);
 #if 0