mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 01:10:04 +00:00
staging: most: usb: don't use error path to exit function on success
This patch makes it transparent whether the function is exiting with an error or successful. Signed-off-by: Christian Gromm <christian.gromm@microchip.com> Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Link: https://lore.kernel.org/r/1590570387-27069-7-git-send-email-christian.gromm@microchip.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
8bf56cfafa
commit
6405fe2142
1 changed files with 2 additions and 2 deletions
|
@ -519,13 +519,13 @@ static int hdm_enqueue(struct most_interface *iface, int channel,
|
|||
"URB submit failed with error %d.\n", retval);
|
||||
goto err_unanchor_urb;
|
||||
}
|
||||
goto unlock_io_mutex;
|
||||
mutex_unlock(&mdev->io_mutex);
|
||||
return 0;
|
||||
|
||||
err_unanchor_urb:
|
||||
usb_unanchor_urb(urb);
|
||||
err_free_urb:
|
||||
usb_free_urb(urb);
|
||||
unlock_io_mutex:
|
||||
mutex_unlock(&mdev->io_mutex);
|
||||
return retval;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue