aboutsummaryrefslogtreecommitdiffstats
path: root/sound/synth/util_mem.c
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@stusta.de>2007-07-30 09:40:43 -0400
committerJaroslav Kysela <perex@perex.cz>2007-10-16 09:58:15 -0400
commit8e6c962cd3fbbd4bbde58421a07e63397c07696a (patch)
treef0f7e46c13f28bef491eaa8d6697fe9c36e0533e /sound/synth/util_mem.c
parent6ddc9d2e82cd488aa117de8dd0a91862cb3656c1 (diff)
[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>
Diffstat (limited to 'sound/synth/util_mem.c')
-rw-r--r--sound/synth/util_mem.c2
1 files changed, 1 insertions, 1 deletions
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,
116 if (blk == NULL) 116 if (blk == NULL)
117 return NULL; 117 return NULL;
118 118
119 if (! prev || prev == &hdr->block) 119 if (prev == &hdr->block)
120 blk->offset = 0; 120 blk->offset = 0;
121 else { 121 else {
122 struct snd_util_memblk *p = get_memblk(prev); 122 struct snd_util_memblk *p = get_memblk(prev);