Commit 3a38e874 authored by Shuah Khan's avatar Shuah Khan Committed by Greg Kroah-Hartman
Browse files

usbip: usbip_host: cleanup do_rebind() return path



Cleanup do_rebind() return path and use common return path.

Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a188339c
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -201,7 +201,7 @@ static DRIVER_ATTR_RW(match_busid);

static int do_rebind(char *busid, struct bus_id_priv *busid_priv)
{
	int ret;
	int ret = 0;

	/* device_attach() callers should hold parent lock for USB */
	if (busid_priv->udev->dev.parent)
@@ -209,12 +209,10 @@ static int do_rebind(char *busid, struct bus_id_priv *busid_priv)
	ret = device_attach(&busid_priv->udev->dev);
	if (busid_priv->udev->dev.parent)
		device_unlock(busid_priv->udev->dev.parent);
	if (ret < 0) {
	if (ret < 0)
		dev_err(&busid_priv->udev->dev, "rebind failed\n");
	return ret;
}
	return 0;
}

static void stub_device_rebind(void)
{