[svn-commits] tzafrir: linux/trunk r9709 - /linux/trunk/drivers/dahdi/xpp/init_card_4_30
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Sun Jan 30 12:10:37 CST 2011
Author: tzafrir
Date: Sun Jan 30 12:10:33 2011
New Revision: 9709
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9709
Log:
xpp: init_card_4_30: add comment
Signed-off-by: Tzafrir Cohen <tzafrir.cohen at xorcom.com>
Modified:
linux/trunk/drivers/dahdi/xpp/init_card_4_30
Modified: linux/trunk/drivers/dahdi/xpp/init_card_4_30
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/xpp/init_card_4_30?view=diff&rev=9709&r1=9708&r2=9709
==============================================================================
--- linux/trunk/drivers/dahdi/xpp/init_card_4_30 (original)
+++ linux/trunk/drivers/dahdi/xpp/init_card_4_30 Sun Jan 30 12:10:33 2011
@@ -348,6 +348,11 @@
} else {
my $file = sprintf "/sys/bus/xpds/devices/%02d:%1d:%1d/pri_protocol",
$ENV{XBUS_NUMBER}, $ENV{UNIT_NUMBER}, $portno;
+ # The 'open' will fail if the port does not exist.
+ # (or rather: the XPD for it does not exist). While
+ # we only read this file to get the default E1/T1 value,
+ # if it does not exist, it also implies the commands sent would
+ # get nowhere. So we might as well quit now.
open(F, $file) || return;
$sysfs_pri_protocol = <F>;
close F;
More information about the svn-commits
mailing list