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 | e5bab07615b8608e690681907f1c3d2cea59ee34 (patch) | |
tree | 23481021568944d85654128504566fcda523bfbe /drivers/dahdi/xpp/xpp_dahdi.c | |
parent | b73f88497aba00abb5bb3f7fdfd9387bdfbedd94 (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); |