diff --git a/drivers/dahdi/xpp/card_bri.c b/drivers/dahdi/xpp/card_bri.c index 86f0534..518e61f 100644 --- a/drivers/dahdi/xpp/card_bri.c +++ b/drivers/dahdi/xpp/card_bri.c @@ -615,7 +615,6 @@ out: #else static int rx_dchan(xpd_t *xpd, reg_cmd_t *regcmd) { - xbus_t *xbus; struct BRI_priv_data *priv; byte *src; struct dahdi_chan *dchan; @@ -633,7 +632,6 @@ static int rx_dchan(xpd_t *xpd, reg_cmd_t *regcmd) BUG_ON(!xpd); priv = xpd->priv; BUG_ON(!priv); - xbus = xpd->xbus; dchan = XPD_CHAN(xpd, 2); if(!IS_OFFHOOK(xpd, 2)) { /* D-chan is used? */ static int rate_limit; diff --git a/drivers/dahdi/xpp/card_echo.c b/drivers/dahdi/xpp/card_echo.c index cdd2ce2..200dd55 100644 --- a/drivers/dahdi/xpp/card_echo.c +++ b/drivers/dahdi/xpp/card_echo.c @@ -63,7 +63,6 @@ static xpd_t *ECHO_card_new(xbus_t *xbus, int unit, int subunit, int subunits, int subunit_ports, bool to_phone) { xpd_t *xpd = NULL; - struct ECHO_priv_data *priv; int channels = 0; if (subunit_ports != 1) { @@ -76,21 +75,16 @@ static xpd_t *ECHO_card_new(xbus_t *xbus, int unit, int subunit, if (!xpd) return NULL; xpd->type_name = "ECHO"; - priv = xpd->priv; return xpd; } static int ECHO_card_init(xbus_t *xbus, xpd_t *xpd) { - struct ECHO_priv_data *priv; - xproto_table_t *proto_table; int ret = 0; BUG_ON(!xpd); XPD_DBG(GENERAL, xpd, "\n"); xpd->type = XPD_TYPE_ECHO; - proto_table = &PROTO_TABLE(ECHO); - priv = xpd->priv; XPD_DBG(DEVICES, xpd, "%s\n", xpd->type_name); ret = CALL_EC_METHOD(ec_update, xbus, xbus); return ret; @@ -98,10 +92,7 @@ static int ECHO_card_init(xbus_t *xbus, xpd_t *xpd) static int ECHO_card_remove(xbus_t *xbus, xpd_t *xpd) { - struct ECHO_priv_data *priv; - BUG_ON(!xpd); - priv = xpd->priv; XPD_DBG(GENERAL, xpd, "\n"); return 0; } @@ -121,15 +112,11 @@ static int ECHO_card_register_reply(xbus_t *xbus, xpd_t *xpd, reg_cmd_t *info) unsigned long flags; struct xpd_addr addr; xpd_t *orig_xpd; - byte regnum; - byte data_low; /* Map UNIT + PORTNUM to XPD */ orig_xpd = xpd; addr.unit = orig_xpd->addr.unit; addr.subunit = info->portnum; - regnum = REG_FIELD(info, regnum); - data_low = REG_FIELD(info, data_low); xpd = xpd_byaddr(xbus, addr.unit, addr.subunit); if (!xpd) { static int rate_limit;