Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv15526/apps

Modified Files:
      Tag: v1-0
        app_queue.c 
Log Message:
remove some unnecessary checks


Index: app_queue.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_queue.c,v
retrieving revision 1.87.2.7
retrieving revision 1.87.2.8
diff -u -d -r1.87.2.7 -r1.87.2.8
--- app_queue.c 31 May 2005 03:22:34 -0000      1.87.2.7
+++ app_queue.c 25 Jul 2005 18:15:25 -0000      1.87.2.8
@@ -891,8 +891,7 @@
                            if (option_verbose > 3)
                                        ast_verbose(VERBOSE_PREFIX_3 "User hit 
%c to disconnect call.\n", f->subclass);
                                *to=0;
-                               if (f)
-                                       ast_frfree(f);  
+                               ast_frfree(f);  
                                return NULL;
                        }
                        if ((f->frametype == AST_FRAME_DTMF) && (f->subclass != 
'*') && valid_exit(qe, f->subclass)) {
@@ -900,13 +899,10 @@
                                        ast_verbose(VERBOSE_PREFIX_3 "User 
pressed digit: %c\n", f->subclass);
                                *to=0;
                                *digit=f->subclass;
-                               if (f)
-                                       ast_frfree(f);
+                               ast_frfree(f);
                                return NULL;
                        }
-                       if (f)
-                               ast_frfree(f);
-                       
+                       ast_frfree(f);
                }
                if (!*to && (option_verbose > 2))
                        ast_verbose( VERBOSE_PREFIX_3 "Nobody picked up in %d 
ms\n", orig);

_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs

Reply via email to