aboutsummaryrefslogtreecommitdiff
path: root/sound/synth
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@stusta.de>2007-07-30 15:40:43 +0200
committerJaroslav Kysela <perex@perex.cz>2007-10-16 15:58:15 +0200
commit8e6c962cd3fbbd4bbde58421a07e63397c07696a (patch)
treef0f7e46c13f28bef491eaa8d6697fe9c36e0533e /sound/synth
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')
-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 1d9b11f345f..6fc3d2b2519 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);