dahdi-tools: xpp: cleanup dead code in xtalk
authorOron Peled <oron.peled@xorcom.com>
Thu, 20 Sep 2012 13:45:06 +0000 (13:45 +0000)
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>
Thu, 20 Sep 2012 13:45:06 +0000 (13:45 +0000)
Signed-off-by: Oron Peled <oron.peled@xorcom.com>
Acked-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>

git-svn-id: http://svn.astersk.org/svn/dahdi/tools/trunk@10714 17933a7a-c749-41c5-a318-cba88f637d49

xpp/xtalk/xusb.c

index 43db944..70bc656 100644 (file)
@@ -735,18 +735,6 @@ retry_write:
                return ret;
        }
        if (!ret) {
-#if 0
-               FILE    *fp;
-
-               fp = fopen("/tmp/xusb.log", "a");
-               if (!fp) {
-                       ERR("%s: Failed writing to /tmp/xusb.log\n", __func__);
-                       return -EFAULT;
-               }
-               fprintf(fp, "[%ld] bulk_write to endpoint 0x%x short write[%d]: (%d)\n",
-                       time(NULL), EP_OUT(xusb), retries, ret);
-               fclose(fp);
-#endif
                ERR("bulk_write to endpoint 0x%x short write[%d]: (%d)\n",
                        EP_OUT(xusb), retries, ret);
                if (retries++ > MAX_RETRIES)
@@ -782,18 +770,6 @@ retry_read:
                return ret;
        }
        if (!ret) {
-#if 0
-               FILE    *fp;
-
-               fp = fopen("/tmp/xusb.log", "a");
-               if (!fp) {
-                       ERR("%s: Failed writing to /tmp/xusb.log\n", __func__);
-                       return -EFAULT;
-               }
-               fprintf(fp, "[%ld] bulk_read from endpoint 0x%x short read[%d]: (%d)\n",
-                       time(NULL), EP_IN(xusb), retries, ret);
-               fclose(fp);
-#endif
                ERR("bulk_read to endpoint 0x%x short read[%d]: (%d)\n",
                        EP_IN(xusb), retries, ret);
                if (retries++ > MAX_RETRIES)