diff options
author | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2011-07-04 14:04:56 +0000 |
---|---|---|
committer | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2011-07-04 14:04:56 +0000 |
commit | f9dbecb486d1ff041ad35e0e29a026bd71e8db83 (patch) | |
tree | 50a9a229b689b1ab2b34a94df0ccd5a97ea3b413 /drivers/dahdi/xpp | |
parent | 0400a2e6a773a5f30e271e218f124080f2f355ae (diff) |
xpp: Eliminate "set but unused" compiler warnings.
gcc 4.6 complains about variables that are assigned values but then
never used.
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@10020 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/xpp')
-rw-r--r-- | drivers/dahdi/xpp/card_bri.c | 2 | ||||
-rw-r--r-- | drivers/dahdi/xpp/card_echo.c | 13 |
2 files changed, 0 insertions, 15 deletions
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; |