From: Figo.zhang Date: Sat, 6 Jun 2009 12:31:49 +0000 (+0800) Subject: USB: ehci-dbg.c: no need for checking it before call vfree X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f8086a07c4740ae37e5221508b9cabc8fef4bf6e;p=linux-beck.git 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 Signed-off-by: Greg Kroah-Hartman --- 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) struct debug_buffer *buf = file->private_data; if (buf) { - if (buf->output_buf) - vfree(buf->output_buf); + vfree(buf->output_buf); kfree(buf); }