]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] remove redundant NULL checks before kfree() in sound/ and avoid casting point...
authorJesper Juhl <juhl-lkml@dif.dk>
Sat, 25 Jun 2005 21:58:49 +0000 (14:58 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 25 Jun 2005 23:25:00 +0000 (16:25 -0700)
commit09417379be9b126e10ae7dcd7afc20b666146266
tree0236f4cb1afb4cf9a7f13b67e6ac639c55fa0440
parent4ae6673e029d609da7ef4311440d6de501d6967a
[PATCH] remove redundant NULL checks before kfree() in sound/ and avoid casting pointers about to be kfree()'ed

Checking a pointer for NULL before calling kfree() on it is redundant,
kfree() deals with NULL pointers just fine.
This patch removes such checks from sound/

This patch also makes another, but closely related, change.
It avoids casting pointers about to be kfree()'ed.

Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
sound/oss/ad1848.c
sound/oss/ad1889.c
sound/oss/dmasound/dmasound_awacs.c
sound/oss/emu10k1/midi.c
sound/oss/emu10k1/passthrough.c
sound/oss/maestro.c
sound/oss/mpu401.c
sound/oss/sb_common.c