no need to check vfree arg for null in oss/sequencer
PATCH 9/13 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 <[email protected]>
---
sound/oss/sequencer.c | 13 +++---------- 1 files changed, 3 insertions(+), 10 deletions(-)
sound/oss/sequencer.c +3 -10
@@ -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 ; }