[svn-commits] tzafrir: tools/trunk r10714 - /tools/trunk/xpp/xtalk/xusb.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Sep 20 08:45:10 CDT 2012


Author: tzafrir
Date: Thu Sep 20 08:45:06 2012
New Revision: 10714

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=10714
Log:
dahdi-tools: xpp: cleanup dead code in xtalk

Signed-off-by: Oron Peled <oron.peled at xorcom.com>
Acked-by: Tzafrir Cohen <tzafrir.cohen at xorcom.com>

Modified:
    tools/trunk/xpp/xtalk/xusb.c

Modified: tools/trunk/xpp/xtalk/xusb.c
URL: http://svnview.digium.com/svn/dahdi/tools/trunk/xpp/xtalk/xusb.c?view=diff&rev=10714&r1=10713&r2=10714
==============================================================================
--- tools/trunk/xpp/xtalk/xusb.c (original)
+++ tools/trunk/xpp/xtalk/xusb.c Thu Sep 20 08:45:06 2012
@@ -735,18 +735,6 @@
 		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 @@
 		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)




More information about the svn-commits mailing list