diff options
author | Shaun Ruffell <sruffell@digium.com> | 2011-06-02 20:00:36 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2011-06-02 20:00:36 +0000 |
commit | f6ad12112070dcf07952a04f53f35060fcee5ac9 (patch) | |
tree | 3878c6f64274cf0d0cd5eafd5b4b98e050b09d9a /drivers/dahdi/xpp/card_pri.c | |
parent | 92bdc098861b2c8e817bb778afe6de171dc14d8b (diff) |
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 <sruffell@digium.com>
Acked-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9929 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/xpp/card_pri.c')
-rw-r--r-- | drivers/dahdi/xpp/card_pri.c | 10 |
1 files changed, 0 insertions, 10 deletions
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); |