Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 126635
b: refs/heads/master
c: bf43701
h: refs/heads/master
i:
  126633: 14b04f0
  126631: 2fac7db
v: v3
  • Loading branch information
Vijay Kumar authored and Greg Kroah-Hartman committed Jan 6, 2009
1 parent 86d8e81 commit 3c2666c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ca219995b299a069dc0a88ddc24ac72423a81361
refs/heads/master: bf437012503cc99519e20b4a8bddf830cdaae794
14 changes: 2 additions & 12 deletions trunk/drivers/staging/poch/poch.c
Original file line number Diff line number Diff line change
Expand Up @@ -948,14 +948,7 @@ static int poch_channel_available(struct channel_info *channel)
spin_lock_irq(&channel->group_offsets_lock);

for (i = 0; i < channel->group_count; i++) {
if (channel->dir == CHANNEL_DIR_RX
&& channel->header->group_offsets[i] == -1) {
spin_unlock_irq(&channel->group_offsets_lock);
return 1;
}

if (channel->dir == CHANNEL_DIR_TX
&& channel->header->group_offsets[i] != -1) {
if (channel->header->group_offsets[i] != -1) {
spin_unlock_irq(&channel->group_offsets_lock);
return 1;
}
Expand Down Expand Up @@ -1103,10 +1096,7 @@ static void poch_irq_dma(struct channel_info *channel)

for (i = 0; i < groups_done; i++) {
j = (prev_transfer + i) % channel->group_count;
if (channel->dir == CHANNEL_DIR_RX)
group_offsets[j] = -1;
else
group_offsets[j] = groups[j].user_offset;
group_offsets[j] = groups[j].user_offset;
}

spin_unlock(&channel->group_offsets_lock);
Expand Down

0 comments on commit 3c2666c

Please sign in to comment.