Remove unused code as well as demote an error message to a debug message
authorMatthew Fredrickson <creslin@digium.com>
Thu, 8 May 2008 15:04:45 +0000 (15:04 +0000)
committerMatthew Fredrickson <creslin@digium.com>
Thu, 8 May 2008 15:04:45 +0000 (15:04 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@115548 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index c201c1a..0788957 100644 (file)
@@ -9369,21 +9369,17 @@ static void *ss7_linkset(void *data)
                                res = ss7_read(ss7, pollers[i].fd);
                                ast_mutex_unlock(&linkset->lock);
                        }
+
                        if (pollers[i].revents & POLLOUT) {
                                ast_mutex_lock(&linkset->lock);
                                res = ss7_write(ss7, pollers[i].fd);
                                ast_mutex_unlock(&linkset->lock);
                                if (res < 0) {
-                                       ast_log(LOG_ERROR, "Error in write %s", strerror(errno));
+                                       ast_debug(1, "Error in write %s\n", strerror(errno));
                                }
                        }
                }
 
-#if 0
-               if (res < 0)
-                       exit(-1);
-#endif
-
                while ((e = ss7_check_event(ss7))) {
                        switch (e->e) {
                        case SS7_EVENT_UP: