[svn-commits] tzafrir: linux/trunk r7690 - /linux/trunk/drivers/dahdi/xpp/xpp_dahdi.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Mon Dec 14 14:41:19 CST 2009
Author: tzafrir
Date: Mon Dec 14 14:41:18 2009
New Revision: 7690
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=7690
Log:
xpp: replace i with j to avoid overriding
Fix a place where an inner declaration of a local 'i' shadows the
declaration of an outer one. Just rename the inner one to 'j'.
Reported by sparse.
Modified:
linux/trunk/drivers/dahdi/xpp/xpp_dahdi.c
Modified: linux/trunk/drivers/dahdi/xpp/xpp_dahdi.c
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/xpp/xpp_dahdi.c?view=diff&rev=7690&r1=7689&r2=7690
==============================================================================
--- linux/trunk/drivers/dahdi/xpp/xpp_dahdi.c (original)
+++ linux/trunk/drivers/dahdi/xpp/xpp_dahdi.c Mon Dec 14 14:41:18 2009
@@ -593,12 +593,12 @@
xpd_t *xpd = xpd_of(xbus, i);
if(xpd) {
if(SPAN_REGISTERED(xpd)) {
- int i;
+ int j;
dahdi_alarm_notify(&xpd->span);
XPD_DBG(DEVICES, xpd, "Queuing DAHDI_EVENT_REMOVED on all channels to ask user to release them\n");
- for (i=0; i<xpd->span.channels; i++) {
- dahdi_qevent_lock(XPD_CHAN(xpd, i),DAHDI_EVENT_REMOVED);
+ for (j=0; j<xpd->span.channels; j++) {
+ dahdi_qevent_lock(XPD_CHAN(xpd, j),DAHDI_EVENT_REMOVED);
}
}
xpd_device_unregister(xpd);
More information about the svn-commits
mailing list