Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f8086a07 authored by Figo.zhang's avatar Figo.zhang Committed by Greg Kroah-Hartman
Browse files

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: default avatarFigo.zhang <figo1802@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 6682bb39
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -879,7 +879,6 @@ static int debug_close(struct inode *inode, struct file *file)
	struct debug_buffer *buf = file->private_data;
	struct debug_buffer *buf = file->private_data;


	if (buf) {
	if (buf) {
		if (buf->output_buf)
		vfree(buf->output_buf);
		vfree(buf->output_buf);
		kfree(buf);
		kfree(buf);
	}
	}