Browse Source

[ALSA] sound/synth/util_mem.c: remove pointless check

The Coverity checker spotted that if anyone would call this function
with 'prev == NULL', he would still get an Oops a few lines below.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
imx_3.10.17_1.0.0_ga
Adrian Bunk 13 years ago
committed by Jaroslav Kysela
parent
commit
8e6c962cd3
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      sound/synth/util_mem.c

+ 1
- 1
sound/synth/util_mem.c View File

@ -116,7 +116,7 @@ __snd_util_memblk_new(struct snd_util_memhdr *hdr, unsigned int units,
if (blk == NULL)
return NULL;
if (! prev || prev == &hdr->block)
if (prev == &hdr->block)
blk->offset = 0;
else {
struct snd_util_memblk *p = get_memblk(prev);


Loading…
Cancel
Save