Skip to content

Commit

Permalink
USB: pl2303: Removes unneeded goto.
Browse files Browse the repository at this point in the history
Signed-off-by: Luiz Fernando N. Capitulino <lcapitulino@mandriva.com.br>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Luiz Fernando N. Capitulino authored and Greg Kroah-Hartman committed Sep 27, 2006
1 parent 5d89266 commit a009b75
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/usb/serial/pl2303.c
Original file line number Diff line number Diff line change
Expand Up @@ -824,16 +824,13 @@ static void pl2303_update_line_status(struct usb_serial_port *port,
}

if (actual_length < length)
goto exit;
return;

/* Save off the uart status for others to look at */
spin_lock_irqsave(&priv->lock, flags);
priv->line_status = data[status_idx];
spin_unlock_irqrestore(&priv->lock, flags);
wake_up_interruptible (&priv->delta_msr_wait);

exit:
return;
}

static void pl2303_read_int_callback (struct urb *urb, struct pt_regs *regs)
Expand Down

0 comments on commit a009b75

Please sign in to comment.