mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
usb: gadget: fix unused-but-set-variale warnings
Those are enabled with W=1 make option. The patch leaves of some type-limits warnings which are caused by generic macros used in a way where they produce always-false conditions. Signed-off-by: Michal Nazarewicz <mina86@mina86.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
This commit is contained in:
parent
9522def400
commit
872ce51195
11 changed files with 18 additions and 60 deletions
|
@ -907,7 +907,6 @@ static int gs_write(struct tty_struct *tty, const unsigned char *buf, int count)
|
|||
{
|
||||
struct gs_port *port = tty->driver_data;
|
||||
unsigned long flags;
|
||||
int status;
|
||||
|
||||
pr_vdebug("gs_write: ttyGS%d (%p) writing %d bytes\n",
|
||||
port->port_num, tty, count);
|
||||
|
@ -917,7 +916,7 @@ static int gs_write(struct tty_struct *tty, const unsigned char *buf, int count)
|
|||
count = gs_buf_put(&port->port_write_buf, buf, count);
|
||||
/* treat count == 0 as flush_chars() */
|
||||
if (port->port_usb)
|
||||
status = gs_start_tx(port);
|
||||
gs_start_tx(port);
|
||||
spin_unlock_irqrestore(&port->port_lock, flags);
|
||||
|
||||
return count;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue