Commit 82aa95ee authored by Stefan Wahren's avatar Stefan Wahren Committed by Greg Kroah-Hartman
Browse files

staging: vchiq_core: Drop unnecessary check in notify_bulks



There is no modification to the vchiq_status before the first if, so drop
this unnecessary check.

Reviewed-by: default avatarNicolas Saenz Julienne <nsaenz@kernel.org>
Signed-off-by: default avatarStefan Wahren <stefan.wahren@i2se.com>
Link: https://lore.kernel.org/r/1619347863-16080-6-git-send-email-stefan.wahren@i2se.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 08f31d01
Loading
Loading
Loading
Loading
+45 −47
Original line number Diff line number Diff line
@@ -1257,7 +1257,6 @@ notify_bulks(struct vchiq_service *service, struct vchiq_bulk_queue *queue,

	queue->remote_notify = queue->process;

	if (status == VCHIQ_SUCCESS) {
	while (queue->remove != queue->remote_notify) {
		struct vchiq_bulk *bulk =
			&queue->bulks[BULK_INDEX(queue->remove)];
@@ -1311,7 +1310,6 @@ notify_bulks(struct vchiq_service *service, struct vchiq_bulk_queue *queue,
	}
	if (!retry_poll)
		status = VCHIQ_SUCCESS;
	}

	if (status == VCHIQ_RETRY)
		request_poll(service->state, service,