summaryrefslogtreecommitdiffstats
path: root/sound/oss/dmabuf.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2013-08-09 12:57:06 +0300
committerTakashi Iwai <tiwai@suse.de>2013-08-09 12:38:33 +0200
commitf5cb0be917ff30ef1df0aab5eb4cb269713c05e3 (patch)
tree3695655285e21a82af2245dbb3c375614dad284b /sound/oss/dmabuf.c
parent663819fb7d7e21f45431db1a2c0180bf2388ed2f (diff)
downloadop-kernel-dev-f5cb0be917ff30ef1df0aab5eb4cb269713c05e3.zip
op-kernel-dev-f5cb0be917ff30ef1df0aab5eb4cb269713c05e3.tar.gz
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>
Diffstat (limited to 'sound/oss/dmabuf.c')
-rw-r--r--sound/oss/dmabuf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/oss/dmabuf.c b/sound/oss/dmabuf.c
index a59c888..461d94c 100644
--- a/sound/oss/dmabuf.c
+++ b/sound/oss/dmabuf.c
@@ -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;
@@ -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);
OpenPOWER on IntegriCloud