From: Adrian Bunk Date: Mon, 30 Jul 2007 13:40:43 +0000 (+0200) Subject: [ALSA] sound/synth/util_mem.c: remove pointless check X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8e6c962cd3fbbd4bbde58421a07e63397c07696a;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git [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 Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela --- diff --git a/sound/synth/util_mem.c b/sound/synth/util_mem.c index 1d9b11f345f8..6fc3d2b2519f 100644 --- a/sound/synth/util_mem.c +++ b/sound/synth/util_mem.c @@ -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);