[svn-commits] tzafrir: branch linux/2.4 r9926 - /linux/branches/2.4/drivers/dahdi/xpp/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue May 31 08:16:58 CDT 2011


Author: tzafrir
Date: Tue May 31 08:16:54 2011
New Revision: 9926

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9926
Log:
xpp: empty labels are not duplicate

Some older Asttribanks had an empty label string. They should be ignored
when testing for a duplicate label at device probe time.

While we're at it, reduce panic level in the notice.

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

Modified:
    linux/branches/2.4/drivers/dahdi/xpp/xbus-core.c

Modified: linux/branches/2.4/drivers/dahdi/xpp/xbus-core.c
URL: http://svnview.digium.com/svn/dahdi/linux/branches/2.4/drivers/dahdi/xpp/xbus-core.c?view=diff&rev=9926&r1=9925&r2=9926
==============================================================================
--- linux/branches/2.4/drivers/dahdi/xpp/xbus-core.c (original)
+++ linux/branches/2.4/drivers/dahdi/xpp/xbus-core.c Tue May 31 08:16:54 2011
@@ -104,7 +104,7 @@
 {
 	if (!xbus)
 		return -ENOENT;
-	if (xbus->label) {
+	if (xbus->label && *(xbus->label)) {
 		xbus_t	*xbus_old;
 
 		XBUS_DBG(DEVICES, xbus, "Checking LABEL='%s'\n", xbus->label);
@@ -118,7 +118,7 @@
 			return -EBUSY;
 		}
 	} else {
-		XBUS_NOTICE(xbus, "MISSING BOARD LABEL!!!\n");
+		XBUS_NOTICE(xbus, "Missing board label (old Astribank?)\n");
 	}
 	return 0;
 }




More information about the svn-commits mailing list