提交 457d3d43 编写于 作者: J Jesper Juhl 提交者: Linus Torvalds

[PATCH] vfree NULL check fixup for sb_card

There's no need to check the vfree() argument for NULL.
Signed-off-by: NJesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 910638ae
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册