Skip to content

Commit

Permalink
[PATCH] vfree NULL check fixup for sb_card
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jesper Juhl authored and Linus Torvalds committed Mar 28, 2006
1 parent 910638a commit 457d3d4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions sound/oss/sb_card.c
Original file line number Diff line number Diff line change
Expand Up @@ -348,10 +348,8 @@ static void __exit sb_exit(void)

sb_unregister_all();

if (smw_free) {
vfree(smw_free);
smw_free = NULL;
}
vfree(smw_free);
smw_free = NULL;
}

module_init(sb_init);
Expand Down

0 comments on commit 457d3d4

Please sign in to comment.