mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 06:31:49 +00:00
sound: oss/dmabuf: remove an unneeded temporary variable
We don't actually use the "go" variable so it can be removed. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
663819fb7d
commit
f5cb0be917
@ -557,7 +557,6 @@ int DMAbuf_getrdbuffer(int dev, char **buf, int *len, int dontblock)
|
|||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
int err = 0, n = 0;
|
int err = 0, n = 0;
|
||||||
struct dma_buffparms *dmap = adev->dmap_in;
|
struct dma_buffparms *dmap = adev->dmap_in;
|
||||||
int go;
|
|
||||||
|
|
||||||
if (!(adev->open_mode & OPEN_READ))
|
if (!(adev->open_mode & OPEN_READ))
|
||||||
return -EIO;
|
return -EIO;
|
||||||
@ -584,7 +583,7 @@ int DMAbuf_getrdbuffer(int dev, char **buf, int *len, int dontblock)
|
|||||||
spin_unlock_irqrestore(&dmap->lock,flags);
|
spin_unlock_irqrestore(&dmap->lock,flags);
|
||||||
return -EAGAIN;
|
return -EAGAIN;
|
||||||
}
|
}
|
||||||
if ((go = adev->go))
|
if (adev->go)
|
||||||
timeout = dmabuf_timeout(dmap);
|
timeout = dmabuf_timeout(dmap);
|
||||||
|
|
||||||
spin_unlock_irqrestore(&dmap->lock,flags);
|
spin_unlock_irqrestore(&dmap->lock,flags);
|
||||||
|
Loading…
Reference in New Issue
Block a user