Skip to content

Commit

Permalink
[ALSA] sound/synth/util_mem.c: remove pointless check
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
Signed-off-by: Jaroslav Kysela <[email protected]>
  • Loading branch information
AdrianBunk authored and perexg committed Oct 16, 2007
1 parent 6ddc9d2 commit 8e6c962
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/synth/util_mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8e6c962

Please sign in to comment.