Commit 9aa892d2 authored by Wolfram Sang's avatar Wolfram Sang Committed by Takashi Iwai

ALSA: pci: echoaudio: remove variable which is a constant

Checking a variable which is always '1' has no use.
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 855b5e01
...@@ -1058,7 +1058,6 @@ static int allocate_pipes(struct echoaudio *chip, struct audiopipe *pipe, ...@@ -1058,7 +1058,6 @@ static int allocate_pipes(struct echoaudio *chip, struct audiopipe *pipe,
{ {
int i; int i;
u32 channel_mask; u32 channel_mask;
char is_cyclic;
dev_dbg(chip->card->dev, dev_dbg(chip->card->dev,
"allocate_pipes: ch=%d int=%d\n", pipe_index, interleave); "allocate_pipes: ch=%d int=%d\n", pipe_index, interleave);
...@@ -1066,8 +1065,6 @@ static int allocate_pipes(struct echoaudio *chip, struct audiopipe *pipe, ...@@ -1066,8 +1065,6 @@ static int allocate_pipes(struct echoaudio *chip, struct audiopipe *pipe,
if (chip->bad_board) if (chip->bad_board)
return -EIO; return -EIO;
is_cyclic = 1; /* This driver uses cyclic buffers only */
for (channel_mask = i = 0; i < interleave; i++) for (channel_mask = i = 0; i < interleave; i++)
channel_mask |= 1 << (pipe_index + i); channel_mask |= 1 << (pipe_index + i);
if (chip->pipe_alloc_mask & channel_mask) { if (chip->pipe_alloc_mask & channel_mask) {
...@@ -1078,7 +1075,7 @@ static int allocate_pipes(struct echoaudio *chip, struct audiopipe *pipe, ...@@ -1078,7 +1075,7 @@ static int allocate_pipes(struct echoaudio *chip, struct audiopipe *pipe,
chip->comm_page->position[pipe_index] = 0; chip->comm_page->position[pipe_index] = 0;
chip->pipe_alloc_mask |= channel_mask; chip->pipe_alloc_mask |= channel_mask;
if (is_cyclic) /* This driver uses cyclic buffers only */
chip->pipe_cyclic_mask |= channel_mask; chip->pipe_cyclic_mask |= channel_mask;
pipe->index = pipe_index; pipe->index = pipe_index;
pipe->interleave = interleave; pipe->interleave = interleave;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment