diff options
author | Jesper Juhl <jesper.juhl@gmail.com> | 2006-03-28 04:56:50 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-28 12:16:08 -0500 |
commit | 5a83fdddb8a104c021837637a59f93948b906819 (patch) | |
tree | 135b1b47bb4a33c2fa02d7011b495e2573926871 /sound | |
parent | 07e0e93d9a3cdbe3cad450e0d0a2937585dffc55 (diff) |
[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')
-rw-r--r-- | sound/oss/sequencer.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/sound/oss/sequencer.c b/sound/oss/sequencer.c index 347cd79c2502..6815c30e0bc1 100644 --- a/sound/oss/sequencer.c +++ b/sound/oss/sequencer.c | |||
@@ -1671,14 +1671,7 @@ void sequencer_init(void) | |||
1671 | 1671 | ||
1672 | void sequencer_unload(void) | 1672 | void sequencer_unload(void) |
1673 | { | 1673 | { |
1674 | if(queue) | 1674 | vfree(queue); |
1675 | { | 1675 | vfree(iqueue); |
1676 | vfree(queue); | 1676 | queue = iqueue = NULL; |
1677 | queue=NULL; | ||
1678 | } | ||
1679 | if(iqueue) | ||
1680 | { | ||
1681 | vfree(iqueue); | ||
1682 | iqueue=NULL; | ||
1683 | } | ||
1684 | } | 1677 | } |