diff options
Diffstat (limited to 'drivers/dahdi/voicebus/GpakCust.h')
-rw-r--r-- | drivers/dahdi/voicebus/GpakCust.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/dahdi/voicebus/GpakCust.h b/drivers/dahdi/voicebus/GpakCust.h index 3842156..27499bd 100644 --- a/drivers/dahdi/voicebus/GpakCust.h +++ b/drivers/dahdi/voicebus/GpakCust.h @@ -149,11 +149,6 @@ void vpmadt032_echocan_free(struct vpmadt032 *vpm, int channo, struct GpakEcanParms; void vpmadt032_get_default_parameters(struct GpakEcanParms *p); -static inline int is_cmd_write(const struct vpmadt032_cmd *cmd) -{ - return (cmd->desc & __VPM150M_WR) != 0; -} - /* If there is a command ready to go to the VPMADT032, return it, otherwise NULL */ static inline struct vpmadt032_cmd *vpmadt032_get_ready_cmd(struct vpmadt032 *vpm) { @@ -166,10 +161,7 @@ static inline struct vpmadt032_cmd *vpmadt032_get_ready_cmd(struct vpmadt032 *vp return NULL; } cmd = list_entry(vpm->pending_cmds.next, struct vpmadt032_cmd, node); - if (!is_cmd_write(cmd)) - list_move_tail(&cmd->node, &vpm->active_cmds); - else - list_del_init(&cmd->node); + list_move_tail(&cmd->node, &vpm->active_cmds); spin_unlock_irqrestore(&vpm->list_lock, flags); return cmd; } |