Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=8e6c962cd3fbbd4bbde58421a07e63397c07696a
Commit:     8e6c962cd3fbbd4bbde58421a07e63397c07696a
Parent:     6ddc9d2e82cd488aa117de8dd0a91862cb3656c1
Author:     Adrian Bunk <[EMAIL PROTECTED]>
AuthorDate: Mon Jul 30 15:40:43 2007 +0200
Committer:  Jaroslav Kysela <[EMAIL PROTECTED]>
CommitDate: Tue Oct 16 15:58:15 2007 +0200

    [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 <[EMAIL PROTECTED]>
    Signed-off-by: Takashi Iwai <[EMAIL PROTECTED]>
    Signed-off-by: Jaroslav Kysela <[EMAIL PROTECTED]>
---
 sound/synth/util_mem.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/sound/synth/util_mem.c b/sound/synth/util_mem.c
index 1d9b11f..6fc3d2b 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);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to