Skip to content

Commit 8e6c962

Browse files
AdrianBunkperexg
authored andcommitted
[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>
1 parent 6ddc9d2 commit 8e6c962

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎sound/synth/util_mem.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ __snd_util_memblk_new(struct snd_util_memhdr *hdr, unsigned int units,
116116
if (blk == NULL)
117117
return NULL;
118118

119-
if (! prev || prev == &hdr->block)
119+
if (prev == &hdr->block)
120120
blk->offset = 0;
121121
else {
122122
struct snd_util_memblk *p = get_memblk(prev);

0 commit comments

Comments
 (0)