[svn-commits] tzafrir: linux/trunk r9614 - /linux/trunk/drivers/dahdi/dahdi-base.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Jan 3 21:17:21 UTC 2011


Author: tzafrir
Date: Mon Jan  3 15:17:17 2011
New Revision: 9614

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9614
Log:
dahdi: Also use constant for DAHDI_TRANSCODE

Signed-off-by: Tzafrir Cohen <tzafrir.cohen at xorcom.com>

Modified:
    linux/trunk/drivers/dahdi/dahdi-base.c

Modified: linux/trunk/drivers/dahdi/dahdi-base.c
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/dahdi-base.c?view=diff&rev=9614&r1=9613&r2=9614
==============================================================================
--- linux/trunk/drivers/dahdi/dahdi-base.c (original)
+++ linux/trunk/drivers/dahdi/dahdi-base.c Mon Jan  3 15:17:17 2011
@@ -3110,7 +3110,7 @@
 	/* Minor 0: Special "control" descriptor */
 	if (unit == DAHDI_CTL)
 		return dahdi_ctl_open(file);
-	if (unit == 250) {
+	if (unit == DAHDI_TRANSCODE) {
 		if (!dahdi_transcode_fops) {
 			if (request_module("dahdi_transcode")) {
 				return -ENXIO;
@@ -3632,7 +3632,7 @@
 	if (unit == DAHDI_TIMER) {
 		return dahdi_timer_release(file);
 	}
-	if (unit == 250) {
+	if (unit == DAHDI_TRANSCODE) {
 		/* We should not be here because the dahdi_transcode.ko module
 		 * should have updated the file_operations for this file
 		 * handle when the file was opened. */
@@ -6389,7 +6389,7 @@
 		goto unlock_exit;
 	}
 
-	if (unit == 250) {
+	if (unit == DAHDI_TRANSCODE) {
 		/* dahdi_transcode should have updated the file_operations on
 		 * this file object on open, so we shouldn't be here. */
 		WARN_ON(1);




More information about the svn-commits mailing list