Skip to content

Commit

Permalink
USB: ehci-dbg.c: no need for checking it before call vfree
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Figo.zhang authored and Greg Kroah-Hartman committed Sep 23, 2009
1 parent 6682bb3 commit f8086a0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/usb/host/ehci-dbg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit f8086a0

Please sign in to comment.