diff options
author | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2011-01-30 18:31:35 +0000 |
---|---|---|
committer | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2011-01-30 18:31:35 +0000 |
commit | 9a5099764ba28d294de1652c7b2141e6387f6f71 (patch) | |
tree | 498526e18bfd6836edd93739796ddce213a21fb2 /drivers/dahdi/xpp/card_fxs.c | |
parent | 800d35ee12804e7fb69903a86e74895246d67c64 (diff) |
xpp: remove unused XPD_STATE() "protocol method"
Folded XPD_STATE() "protocol method" into the card_state() method.
It was only called from these (otherwise empty) methods.
Also it is not a "protocol method" for a very very very long time.
Signed-off-by: Oron Peled <oron@actcom.co.il>
Acked-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9715 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/xpp/card_fxs.c')
-rw-r--r-- | drivers/dahdi/xpp/card_fxs.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/drivers/dahdi/xpp/card_fxs.c b/drivers/dahdi/xpp/card_fxs.c index ebd0eeb..50814a1 100644 --- a/drivers/dahdi/xpp/card_fxs.c +++ b/drivers/dahdi/xpp/card_fxs.c @@ -104,8 +104,6 @@ enum fxs_state { /*---------------- FXS Protocol Commands ----------------------------------*/ -static /* 0x0F */ DECLARE_CMD(FXS, XPD_STATE, bool on); - static bool fxs_packet_is_valid(xpacket_t *pack); static void fxs_packet_dump(const char *msg, xpacket_t *pack); #ifdef CONFIG_PROC_FS @@ -1159,14 +1157,6 @@ static int FXS_card_tick(xbus_t *xbus, xpd_t *xpd) /*---------------- FXS: HOST COMMANDS -------------------------------------*/ -static /* 0x0F */ HOSTCMD(FXS, XPD_STATE, bool on) -{ - BUG_ON(!xbus); - BUG_ON(!xpd); - XPD_DBG(GENERAL, xpd, "%s\n", (on)?"on":"off"); - return 0; -} - /*---------------- FXS: Astribank Reply Handlers --------------------------*/ /* @@ -1396,7 +1386,9 @@ static int FXS_card_register_reply(xbus_t *xbus, xpd_t *xpd, reg_cmd_t *info) static int FXS_card_state(xpd_t *xpd, bool on) { - return CALL_PROTO(FXS, XPD_STATE, xpd->xbus, xpd, on); + BUG_ON(!xpd); + XPD_DBG(GENERAL, xpd, "%s\n", (on)?"on":"off"); + return 0; } static const struct xops fxs_xops = { |