Remove unneeded struct q921_link.mdl_error_state member.
git-svn-id: https://origsvn.digium.com/svn/libpri/branches/1.4@2102 2fbb986a-6c06-0410-b554-c9c1f0a7f128
This commit is contained in:
parent
948625318a
commit
8db67a915d
@ -230,7 +230,6 @@ struct q921_link {
|
||||
/* MDL variables */
|
||||
int mdl_timer;
|
||||
int mdl_error;
|
||||
enum q921_state mdl_error_state;
|
||||
unsigned int mdl_free_me:1;
|
||||
|
||||
unsigned int peer_rx_busy:1;
|
||||
|
5
q921.c
5
q921.c
@ -1652,7 +1652,7 @@ static void q921_restart_ptp_link_if_needed(struct q921_link *link)
|
||||
}
|
||||
}
|
||||
|
||||
static void q921_mdl_handle_error(struct q921_link *link, char error, int errored_state)
|
||||
static void q921_mdl_handle_error(struct q921_link *link, char error)
|
||||
{
|
||||
struct pri *ctrl;
|
||||
|
||||
@ -1673,7 +1673,7 @@ static void q921_mdl_handle_error_callback(void *vlink)
|
||||
{
|
||||
struct q921_link *link = vlink;
|
||||
|
||||
q921_mdl_handle_error(link, link->mdl_error, link->mdl_error_state);
|
||||
q921_mdl_handle_error(link, link->mdl_error);
|
||||
|
||||
link->mdl_error = 0;
|
||||
link->mdl_timer = 0;
|
||||
@ -1813,7 +1813,6 @@ static void q921_mdl_error(struct q921_link *link, char error)
|
||||
return;
|
||||
}
|
||||
link->mdl_error = error;
|
||||
link->mdl_error_state = link->state;
|
||||
link->mdl_timer = pri_schedule_event(ctrl, 0, q921_mdl_handle_error_callback, link);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user