Skip to content

Commit

Permalink
sound: oss/dmabuf: remove an unneeded temporary variable
Browse files Browse the repository at this point in the history
We don't actually use the "go" variable so it can be removed.

Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
Dan Carpenter authored and tiwai committed Aug 9, 2013
1 parent 663819f commit f5cb0be
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sound/oss/dmabuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,6 @@ int DMAbuf_getrdbuffer(int dev, char **buf, int *len, int dontblock)
unsigned long flags;
int err = 0, n = 0;
struct dma_buffparms *dmap = adev->dmap_in;
int go;

if (!(adev->open_mode & OPEN_READ))
return -EIO;
Expand All @@ -584,7 +583,7 @@ int DMAbuf_getrdbuffer(int dev, char **buf, int *len, int dontblock)
spin_unlock_irqrestore(&dmap->lock,flags);
return -EAGAIN;
}
if ((go = adev->go))
if (adev->go)
timeout = dmabuf_timeout(dmap);

spin_unlock_irqrestore(&dmap->lock,flags);
Expand Down

0 comments on commit f5cb0be

Please sign in to comment.