From e692731061c6137d46b3b08c4289379745409daf Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Mon, 14 Dec 2009 20:41:18 +0000 Subject: 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 --- drivers/dahdi/xpp/xpp_dahdi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'drivers/dahdi/xpp/xpp_dahdi.c') 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; ispan.channels; i++) { - dahdi_qevent_lock(XPD_CHAN(xpd, i),DAHDI_EVENT_REMOVED); + for (j=0; jspan.channels; j++) { + dahdi_qevent_lock(XPD_CHAN(xpd, j),DAHDI_EVENT_REMOVED); } } xpd_device_unregister(xpd); -- cgit v1.2.3