diff options
Diffstat (limited to 'drivers/usb/host/ehci-dbg.c')
-rw-r--r-- | drivers/usb/host/ehci-dbg.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/host/ehci-dbg.c b/drivers/usb/host/ehci-dbg.c index 7f4ace73d44a..1104caa0803b 100644 --- a/drivers/usb/host/ehci-dbg.c +++ b/drivers/usb/host/ehci-dbg.c | |||
@@ -879,8 +879,7 @@ static int debug_close(struct inode *inode, struct file *file) | |||
879 | struct debug_buffer *buf = file->private_data; | 879 | struct debug_buffer *buf = file->private_data; |
880 | 880 | ||
881 | if (buf) { | 881 | if (buf) { |
882 | if (buf->output_buf) | 882 | vfree(buf->output_buf); |
883 | vfree(buf->output_buf); | ||
884 | kfree(buf); | 883 | kfree(buf); |
885 | } | 884 | } |
886 | 885 | ||