usb: Fix compilation warnings

This change fixes below compilation warnings
f_fs.c:700:19: warning: unused variable 'ffs' [-Wunused-variable]
u_serial.c:1023:3: warning: 'return' with a value, in function returning
		   void

Signed-off-by: Mayank Rana <mrana@codeaurora.org>
This commit is contained in:
Mayank Rana 2016-03-16 13:55:06 -07:00 committed by David Keitel
parent 57e845ecce
commit ae7490959a
2 changed files with 1 additions and 2 deletions

View file

@ -697,7 +697,6 @@ static ssize_t ffs_epfile_io(struct file *file, struct ffs_io_data *io_data)
{
struct ffs_epfile *epfile = file->private_data;
struct ffs_ep *ep;
struct ffs_data *ffs = epfile->ffs;
char *data = NULL;
ssize_t ret, data_len = -EINVAL;
int halt;

View file

@ -1020,7 +1020,7 @@ static void gs_flush_chars(struct tty_struct *tty)
unsigned long flags;
if (!port)
return 0;
return;
pr_vdebug("gs_flush_chars: (%d,%p)\n", port->port_num, tty);
spin_lock_irqsave(&port->port_lock, flags);