wctc4xxp: Remove 'service_dte' function and a few inline keywords.
'service_dte' was only called in one place and is only two lines. I do not think it is adding much anymore. Also, let compiler should decide if 'service_rx_ring' and 'service_tx_ring' should be inlined. Signed-off-by: Shaun Ruffell <sruffell@digium.com> Acked-by: Kinsey Moore <kmoore@digium.com> Acked-by: Russ Meyerriecks <rmeyerriecks@digium.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9435 a0bf4364-ded3-4de4-8d8a-66a801d63aff
This commit is contained in:
parent
8897a79f5b
commit
8ac8b90bd4
@ -2500,7 +2500,7 @@ wctc4xxp_receiveprep(struct wcdte *wc, struct tcb *cmd)
|
||||
}
|
||||
}
|
||||
|
||||
static inline void service_tx_ring(struct wcdte *wc)
|
||||
static void service_tx_ring(struct wcdte *wc)
|
||||
{
|
||||
struct tcb *cmd;
|
||||
unsigned long flags;
|
||||
@ -2541,7 +2541,7 @@ static inline void service_tx_ring(struct wcdte *wc)
|
||||
}
|
||||
}
|
||||
|
||||
static inline void service_rx_ring(struct wcdte *wc)
|
||||
static void service_rx_ring(struct wcdte *wc)
|
||||
{
|
||||
struct tcb *cmd;
|
||||
unsigned long flags;
|
||||
@ -2563,13 +2563,6 @@ static inline void service_rx_ring(struct wcdte *wc)
|
||||
wctc4xxp_receive_demand_poll(wc);
|
||||
}
|
||||
|
||||
static inline void service_dte(struct wcdte *wc)
|
||||
{
|
||||
service_tx_ring(wc);
|
||||
service_rx_ring(wc);
|
||||
}
|
||||
|
||||
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 20)
|
||||
static void deferred_work_func(void *param)
|
||||
{
|
||||
@ -2579,7 +2572,8 @@ static void deferred_work_func(struct work_struct *work)
|
||||
{
|
||||
struct wcdte *wc = container_of(work, struct wcdte, deferred_work);
|
||||
#endif
|
||||
service_dte(wc);
|
||||
service_tx_ring(wc);
|
||||
service_rx_ring(wc);
|
||||
}
|
||||
|
||||
DAHDI_IRQ_HANDLER(wctc4xxp_interrupt)
|
||||
|
Loading…
Reference in New Issue
Block a user