sound: oss/dmabuf: remove an unneeded temporary variable
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 9 Aug 2013 09:57:06 +0000 (12:57 +0300)
committerTakashi Iwai <tiwai@suse.de>
Fri, 9 Aug 2013 10:38:33 +0000 (12:38 +0200)
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>
sound/oss/dmabuf.c

index a59c88818f48a2dbf1f79e9ac4a627ee81f6cb26..461d94cfecbee6bc0ac02d324db0f3f74c9d4eae 100644 (file)
@@ -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);