diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2013-08-09 05:57:06 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-08-09 06:38:33 -0400 |
commit | f5cb0be917ff30ef1df0aab5eb4cb269713c05e3 (patch) | |
tree | 3695655285e21a82af2245dbb3c375614dad284b /sound/oss | |
parent | 663819fb7d7e21f45431db1a2c0180bf2388ed2f (diff) |
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')
-rw-r--r-- | sound/oss/dmabuf.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/oss/dmabuf.c b/sound/oss/dmabuf.c index a59c88818f48..461d94cfecbe 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) | |||
557 | unsigned long flags; | 557 | unsigned long flags; |
558 | int err = 0, n = 0; | 558 | int err = 0, n = 0; |
559 | struct dma_buffparms *dmap = adev->dmap_in; | 559 | struct dma_buffparms *dmap = adev->dmap_in; |
560 | int go; | ||
561 | 560 | ||
562 | if (!(adev->open_mode & OPEN_READ)) | 561 | if (!(adev->open_mode & OPEN_READ)) |
563 | return -EIO; | 562 | return -EIO; |
@@ -584,7 +583,7 @@ int DMAbuf_getrdbuffer(int dev, char **buf, int *len, int dontblock) | |||
584 | spin_unlock_irqrestore(&dmap->lock,flags); | 583 | spin_unlock_irqrestore(&dmap->lock,flags); |
585 | return -EAGAIN; | 584 | return -EAGAIN; |
586 | } | 585 | } |
587 | if ((go = adev->go)) | 586 | if (adev->go) |
588 | timeout = dmabuf_timeout(dmap); | 587 | timeout = dmabuf_timeout(dmap); |
589 | 588 | ||
590 | spin_unlock_irqrestore(&dmap->lock,flags); | 589 | spin_unlock_irqrestore(&dmap->lock,flags); |