mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-06 11:26:22 -04:00
staging: vchiq_core: return early in do_abort_bulks
Avoid the multiline statement for notify_bulks by return early in error case. Reviewed-by: Nicolas Saenz Julienne <nsaenz@kernel.org> Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com> Link: https://lore.kernel.org/r/1619347863-16080-4-git-send-email-stefan.wahren@i2se.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
bd18b980a2
commit
f7ba60127a
@@ -2622,9 +2622,10 @@ do_abort_bulks(struct vchiq_service *service)
|
||||
mutex_unlock(&service->bulk_mutex);
|
||||
|
||||
status = notify_bulks(service, &service->bulk_tx, 0/*!retry_poll*/);
|
||||
if (status == VCHIQ_SUCCESS)
|
||||
status = notify_bulks(service, &service->bulk_rx,
|
||||
0/*!retry_poll*/);
|
||||
if (status != VCHIQ_SUCCESS)
|
||||
return 0;
|
||||
|
||||
status = notify_bulks(service, &service->bulk_rx, 0/*!retry_poll*/);
|
||||
return (status == VCHIQ_SUCCESS);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user