diff options
author | Jesper Juhl <jesper.juhl@gmail.com> | 2006-03-28 04:56:49 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-28 12:16:07 -0500 |
commit | 457d3d432bede99ed04d3bdeb5efb238a3627e8f (patch) | |
tree | 164c91effb78a8d447a0708fecb12dea3e1c71af /sound/oss/sb_card.c | |
parent | 910638ae7ed4be27d6af55f6c9b5bf54b838e78b (diff) |
[PATCH] vfree NULL check fixup for sb_card
There's no need to check the vfree() argument for NULL.
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/sb_card.c')
-rw-r--r-- | sound/oss/sb_card.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sound/oss/sb_card.c b/sound/oss/sb_card.c index d38e88abc8fa..4708cbdc3149 100644 --- a/sound/oss/sb_card.c +++ b/sound/oss/sb_card.c | |||
@@ -348,10 +348,8 @@ static void __exit sb_exit(void) | |||
348 | 348 | ||
349 | sb_unregister_all(); | 349 | sb_unregister_all(); |
350 | 350 | ||
351 | if (smw_free) { | 351 | vfree(smw_free); |
352 | vfree(smw_free); | 352 | smw_free = NULL; |
353 | smw_free = NULL; | ||
354 | } | ||
355 | } | 353 | } |
356 | 354 | ||
357 | module_init(sb_init); | 355 | module_init(sb_init); |