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

Commit 7ebcb334 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman
Browse files

USB: serial: keyspan: fix up some compiler warnings



I accidentally caused some compiler warnings, that were correct in
pointing out problems, so fix them up now.

Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 049c6b4e
Loading
Loading
Loading
Loading
+2 −4
Original line number Original line Diff line number Diff line
@@ -2474,14 +2474,12 @@ static int keyspan_startup(struct usb_serial *serial)
	if (s_priv->instat_urb != NULL) {
	if (s_priv->instat_urb != NULL) {
		err = usb_submit_urb(s_priv->instat_urb, GFP_KERNEL);
		err = usb_submit_urb(s_priv->instat_urb, GFP_KERNEL);
		if (err != 0)
		if (err != 0)
			dev_dbg(&port->dev, "%s - submit instat urb failed %d\n", __func__,
			dev_dbg(&serial->dev->dev, "%s - submit instat urb failed %d\n", __func__, err);
				err);
	}
	}
	if (s_priv->indat_urb != NULL) {
	if (s_priv->indat_urb != NULL) {
		err = usb_submit_urb(s_priv->indat_urb, GFP_KERNEL);
		err = usb_submit_urb(s_priv->indat_urb, GFP_KERNEL);
		if (err != 0)
		if (err != 0)
			dev_dbg(&port->dev, "%s - submit indat urb failed %d\n", __func__,
			dev_dbg(&serial->dev->dev, "%s - submit indat urb failed %d\n", __func__, err);
				err);
	}
	}


	return 0;
	return 0;