diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2014-11-21 20:34:48 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-11-21 22:06:57 +0300 |
commit | d712eaf29d3fe5928d891a4a90ac58644ad595ed (patch) | |
tree | 3de3dce17716da6132740fa87449231d0fa21a04 /sound/core/sgbuf.c | |
parent | eaa8e5ef18fa9e09286482a4ded3a3cad36e44b2 (diff) | |
download | linux-d712eaf29d3fe5928d891a4a90ac58644ad595ed.tar.xz |
ALSA: core: Deletion of unnecessary checks before two function calls
The functions snd_seq_oss_timer_delete() and vunmap() perform also input
parameter validation. Thus the test around the call is not needed.
This issue was detected by using the Coccinelle software.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core/sgbuf.c')
-rw-r--r-- | sound/core/sgbuf.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/core/sgbuf.c b/sound/core/sgbuf.c index 0a418503ec41..84fffabdd129 100644 --- a/sound/core/sgbuf.c +++ b/sound/core/sgbuf.c @@ -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; |