summaryrefslogtreecommitdiffstats
path: root/sound/oss/sequencer.c
diff options
context:
space:
mode:
authorJesper Juhl <jesper.juhl@gmail.com>2006-03-28 01:56:50 -0800
committerLinus Torvalds <torvalds@g5.osdl.org>2006-03-28 09:16:08 -0800
commit5a83fdddb8a104c021837637a59f93948b906819 (patch)
tree135b1b47bb4a33c2fa02d7011b495e2573926871 /sound/oss/sequencer.c
parent07e0e93d9a3cdbe3cad450e0d0a2937585dffc55 (diff)
downloadkernel-crypto-5a83fdddb8a104c021837637a59f93948b906819.tar.gz
kernel-crypto-5a83fdddb8a104c021837637a59f93948b906819.tar.xz
kernel-crypto-5a83fdddb8a104c021837637a59f93948b906819.zip
[PATCH] no need to check vfree arg for null in oss/sequencer
There's no need to check pointers for NULL before handing them to vfree(). Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'sound/oss/sequencer.c')
-rw-r--r--sound/oss/sequencer.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/sound/oss/sequencer.c b/sound/oss/sequencer.c
index 347cd79c250..6815c30e0bc 100644
--- a/sound/oss/sequencer.c
+++ b/sound/oss/sequencer.c
@@ -1671,14 +1671,7 @@ void sequencer_init(void)
void sequencer_unload(void)
{
- if(queue)
- {
- vfree(queue);
- queue=NULL;
- }
- if(iqueue)
- {
- vfree(iqueue);
- iqueue=NULL;
- }
+ vfree(queue);
+ vfree(iqueue);
+ queue = iqueue = NULL;
}