mirror of
https://github.com/genesi/linux-legacy.git
synced 2026-05-17 15:31:57 +00:00
[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>
This commit is contained in:
committed by
Linus Torvalds
parent
910638ae7e
commit
457d3d432b
@@ -348,10 +348,8 @@ static void __exit sb_exit(void)
|
|||||||
|
|
||||||
sb_unregister_all();
|
sb_unregister_all();
|
||||||
|
|
||||||
if (smw_free) {
|
vfree(smw_free);
|
||||||
vfree(smw_free);
|
smw_free = NULL;
|
||||||
smw_free = NULL;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
module_init(sb_init);
|
module_init(sb_init);
|
||||||
|
|||||||
Reference in New Issue
Block a user