Skip to content

Commit

Permalink
USB: serial: keyspan: fix up some compiler warnings
Browse files Browse the repository at this point in the history
I accidentally caused some compiler warnings, that were correct in
pointing out problems, so fix them up now.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Greg Kroah-Hartman committed Sep 14, 2012
1 parent 049c6b4 commit 7ebcb33
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions drivers/usb/serial/keyspan.c
Original file line number Diff line number Diff line change
Expand Up @@ -2474,14 +2474,12 @@ static int keyspan_startup(struct usb_serial *serial)
if (s_priv->instat_urb != NULL) {
err = usb_submit_urb(s_priv->instat_urb, GFP_KERNEL);
if (err != 0)
dev_dbg(&port->dev, "%s - submit instat urb failed %d\n", __func__,
err);
dev_dbg(&serial->dev->dev, "%s - submit instat urb failed %d\n", __func__, err);
}
if (s_priv->indat_urb != NULL) {
err = usb_submit_urb(s_priv->indat_urb, GFP_KERNEL);
if (err != 0)
dev_dbg(&port->dev, "%s - submit indat urb failed %d\n", __func__,
err);
dev_dbg(&serial->dev->dev, "%s - submit indat urb failed %d\n", __func__, err);
}

return 0;
Expand Down

0 comments on commit 7ebcb33

Please sign in to comment.