diff options
author | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2009-12-14 20:41:18 +0000 |
---|---|---|
committer | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2009-12-14 20:41:18 +0000 |
commit | e692731061c6137d46b3b08c4289379745409daf (patch) | |
tree | 23481021568944d85654128504566fcda523bfbe /drivers/dahdi/xpp/xpp_dahdi.c | |
parent | 67696c11dcfebf3b959388daeeddfd1cb3bef1c6 (diff) |
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.
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7690 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/xpp/xpp_dahdi.c')
-rw-r--r-- | drivers/dahdi/xpp/xpp_dahdi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/dahdi/xpp/xpp_dahdi.c b/drivers/dahdi/xpp/xpp_dahdi.c index e3b9409..19a2bc4 100644 --- a/drivers/dahdi/xpp/xpp_dahdi.c +++ b/drivers/dahdi/xpp/xpp_dahdi.c @@ -593,12 +593,12 @@ void xbus_request_removal(xbus_t *xbus) 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); |