projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6682bb3
)
USB: ehci-dbg.c: no need for checking it before call vfree
author
Figo.zhang
<figo1802@gmail.com>
Sat, 6 Jun 2009 12:31:49 +0000
(20:31 +0800)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Wed, 23 Sep 2009 13:46:18 +0000
(06:46 -0700)
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>
drivers/usb/host/ehci-dbg.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/host/ehci-dbg.c
b/drivers/usb/host/ehci-dbg.c
index 7f4ace73d44aee2da8e9484be8f103d8ec1e9bea..1104caa0803b07fb77825afd5eb58527896f77a1 100644
(file)
--- 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);
}