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/card_pri.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'drivers/dahdi/xpp/card_pri.c') diff --git a/drivers/dahdi/xpp/card_pri.c b/drivers/dahdi/xpp/card_pri.c index 8e88b7e..a2f755f 100644 --- a/drivers/dahdi/xpp/card_pri.c +++ b/drivers/dahdi/xpp/card_pri.c @@ -747,11 +747,8 @@ static void set_reg_lim0(const char *msg, xpd_t *xpd) */ static int set_master_mode(const char *msg, xpd_t *xpd) { - struct PRI_priv_data *priv; - BUG_ON(!xpd); XPD_DBG(SIGNAL, xpd, "\n"); - priv = xpd->priv; set_reg_lim0(__FUNCTION__, xpd); set_clocking(xpd); return 0; @@ -1143,12 +1140,10 @@ static int PRI_card_init(xbus_t *xbus, xpd_t *xpd) { struct PRI_priv_data *priv; int ret = 0; - xproto_table_t *proto_table; BUG_ON(!xpd); XPD_DBG(GENERAL, xpd, "\n"); xpd->type = XPD_TYPE_PRI; - proto_table = &PROTO_TABLE(PRI); priv = xpd->priv; if(priv->pri_protocol == PRI_PROTO_0) { /* @@ -1187,10 +1182,7 @@ err: static int PRI_card_remove(xbus_t *xbus, xpd_t *xpd) { - struct PRI_priv_data *priv; - BUG_ON(!xpd); - priv = xpd->priv; XPD_DBG(GENERAL, xpd, "\n"); return 0; } @@ -1278,11 +1270,9 @@ static int PRI_card_dahdi_preregistration(xpd_t *xpd, bool on) static int PRI_card_dahdi_postregistration(xpd_t *xpd, bool on) { xbus_t *xbus; - struct PRI_priv_data *priv; BUG_ON(!xpd); xbus = xpd->xbus; - priv = xpd->priv; BUG_ON(!xbus); XPD_DBG(GENERAL, xpd, "%s\n", (on)?"on":"off"); dahdi_update_syncsrc(xpd); -- cgit v1.2.3