Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 457d3d43 authored by Jesper Juhl's avatar Jesper Juhl Committed by Linus Torvalds
Browse files

[PATCH] vfree NULL check fixup for sb_card



There's no need to check the vfree() argument for NULL.

Signed-off-by: default avatarJesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 910638ae
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -348,11 +348,9 @@ static void __exit sb_exit(void)

	sb_unregister_all();

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

module_init(sb_init);
module_exit(sb_exit);