From f6ad12112070dcf07952a04f53f35060fcee5ac9 Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Thu, 2 Jun 2011 20:00:36 +0000 Subject: Remove unused variables. gcc-4.6 now warns about variables that are set but never used. Clean up unused variables everywhere except the oct612x subdirectory. The oct612x should go in a separate patch in case that needs to be pulled out into a separate project again. Signed-off-by: Shaun Ruffell Acked-by: Tzafrir Cohen git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9929 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/xpp/xpp_dahdi.c | 5 ----- 1 file changed, 5 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 ecbaf49..89adf51 100644 --- a/drivers/dahdi/xpp/xpp_dahdi.c +++ b/drivers/dahdi/xpp/xpp_dahdi.c @@ -275,13 +275,11 @@ static int xpd_read_proc(char *page, char **start, off_t off, int count, int *eo { int len = 0; xpd_t *xpd = data; - xbus_t *xbus; int i; if(!xpd) goto out; - xbus = xpd->xbus; len += sprintf(page + len, "%s (%s, card %s, span %d)\n" "timing_priority: %d\n" "timer_count: %d span->mainttimer=%d\n" @@ -606,10 +604,7 @@ void xbus_request_removal(xbus_t *xbus) */ void xpd_remove(xpd_t *xpd) { - xbus_t *xbus; - BUG_ON(!xpd); - xbus = xpd->xbus; XPD_INFO(xpd, "Remove\n"); dahdi_unregister_xpd(xpd); CALL_XMETHOD(card_remove, xpd); -- cgit v1.2.3