mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
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:
parent
6682bb39e1
commit
f8086a07c4
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue