Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 293295
b: refs/heads/master
c: 97df818
h: refs/heads/master
i:
  293293: d980b96
  293291: 0207c8f
  293287: 0235717
  293279: 5ac37ab
v: v3
  • Loading branch information
Kuninori Morimoto authored and Mark Brown committed Feb 3, 2012
1 parent dd4cd80 commit 76198d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 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: 180346ede352b12c72c5aeba2fc806fd32880c16
refs/heads/master: 97df81873e9c1391319dd818bc4b6856517e4939
6 changes: 2 additions & 4 deletions trunk/sound/soc/sh/fsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ static int fsi_stream_is_working(struct fsi_priv *fsi,
int ret;

spin_lock_irqsave(&master->lock, flags);
ret = !!io->substream;
ret = !!(io->substream && io->substream->runtime);
spin_unlock_irqrestore(&master->lock, flags);

return ret;
Expand Down Expand Up @@ -756,9 +756,7 @@ static int fsi_pio_transfer(struct fsi_priv *fsi, struct fsi_stream *io,
u8 *buf;
int over_period;

if (!fsi ||
!io->substream ||
!io->substream->runtime)
if (!fsi_stream_is_working(fsi, io))
return -EINVAL;

over_period = 0;
Expand Down

0 comments on commit 76198d8

Please sign in to comment.