dect
/
linux-2.6
Archived
13
0
Fork 0

USB: ehci-dbg.c: no need for checking it before call vfree

vfree() does it's own NULL checking,so no need for check before
calling it.

Signed-off-by: Figo.zhang <figo1802@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Figo.zhang 2009-06-06 20:31:49 +08:00 committed by Greg Kroah-Hartman
parent 6682bb39e1
commit f8086a07c4
1 changed files with 1 additions and 2 deletions

View File

@ -879,8 +879,7 @@ static int debug_close(struct inode *inode, struct file *file)
struct debug_buffer *buf = file->private_data;
if (buf) {
if (buf->output_buf)
vfree(buf->output_buf);
vfree(buf->output_buf);
kfree(buf);
}