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

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.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 08f31d01
...@@ -1257,7 +1257,6 @@ notify_bulks(struct vchiq_service *service, struct vchiq_bulk_queue *queue, ...@@ -1257,7 +1257,6 @@ notify_bulks(struct vchiq_service *service, struct vchiq_bulk_queue *queue,
queue->remote_notify = queue->process; queue->remote_notify = queue->process;
if (status == VCHIQ_SUCCESS) {
while (queue->remove != queue->remote_notify) { while (queue->remove != queue->remote_notify) {
struct vchiq_bulk *bulk = struct vchiq_bulk *bulk =
&queue->bulks[BULK_INDEX(queue->remove)]; &queue->bulks[BULK_INDEX(queue->remove)];
...@@ -1311,7 +1310,6 @@ notify_bulks(struct vchiq_service *service, struct vchiq_bulk_queue *queue, ...@@ -1311,7 +1310,6 @@ notify_bulks(struct vchiq_service *service, struct vchiq_bulk_queue *queue,
} }
if (!retry_poll) if (!retry_poll)
status = VCHIQ_SUCCESS; status = VCHIQ_SUCCESS;
}
if (status == VCHIQ_RETRY) if (status == VCHIQ_RETRY)
request_poll(service->state, service, request_poll(service->state, service,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment