ALSA: core: Deletion of unnecessary checks before two function calls
[sfrench/cifs-2.6.git] / sound / core / sgbuf.c
index 0a418503ec412c61e22da5ac31ddac96e6e436a4..84fffabdd129ded8373f20ea06304d8ac7473028 100644 (file)
@@ -39,8 +39,7 @@ int snd_free_sgbuf_pages(struct snd_dma_buffer *dmab)
        if (! sgbuf)
                return -EINVAL;
 
-       if (dmab->area)
-               vunmap(dmab->area);
+       vunmap(dmab->area);
        dmab->area = NULL;
 
        tmpb.dev.type = SNDRV_DMA_TYPE_DEV;