Commit c0231af3 authored by Dave Jones's avatar Dave Jones Committed by Dave Jones

[AGPGART] vfree() checking cleanups

generic.c vfree() checking cleanups.

Signed-off by: James Lamanna <jlamanna@gmail.com>
Signed-off-by: default avatarDomen Puncer <domen@coderock.org>
Signed-off-by: default avatarDave Jones <davej@redhat.com>
parent 3bd95d6d
......@@ -1050,9 +1050,7 @@ EXPORT_SYMBOL(agp_generic_alloc_by_type);
void agp_generic_free_by_type(struct agp_memory *curr)
{
if (curr->memory != NULL)
vfree(curr->memory);
vfree(curr->memory);
agp_free_key(curr->key);
kfree(curr);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment