Don't check pointers about to be vfree()'d for NULL
PATCH 1/1 Don't check pointers about to be vfree()'d for NULL
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_unload (void ) { -if (queue) - { -vfree (queue); - queue=NULL ; - } -if (iqueue) - { -vfree (iqueue); - iqueue=NULL ; - } +vfree (queue); +vfree (iqueue); + queue = iqueue =NULL ; }