staging: vchiq_dev: Drop userdata local pointer
The 'userdata' local pointer can be dropped which is set to bulk_waiter. We can directly pass the waiter->bulk_waiter pointer to vchiq_bulk_xfer_waiting(). Signed-off-by: Umang Jain <umang.jain@ideasonboard.com> Link: https://lore.kernel.org/r/20241017133629.216672-7-umang.jain@ideasonboard.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
643f2e8a6a
commit
0ef2fbdf7d
@@ -289,7 +289,6 @@ static int vchiq_irq_queue_bulk_tx_rx(struct vchiq_instance *instance,
|
||||
struct vchiq_service *service;
|
||||
struct bulk_waiter_node *waiter = NULL, *iter;
|
||||
struct vchiq_bulk bulk_params = {};
|
||||
void *userdata;
|
||||
int status = 0;
|
||||
int ret;
|
||||
|
||||
@@ -331,9 +330,9 @@ static int vchiq_irq_queue_bulk_tx_rx(struct vchiq_instance *instance,
|
||||
}
|
||||
dev_dbg(service->state->dev, "arm: found bulk_waiter %pK for pid %d\n",
|
||||
waiter, current->pid);
|
||||
userdata = &waiter->bulk_waiter;
|
||||
|
||||
status = vchiq_bulk_xfer_waiting(instance, args->handle, userdata);
|
||||
status = vchiq_bulk_xfer_waiting(instance, args->handle,
|
||||
&waiter->bulk_waiter);
|
||||
} else {
|
||||
bulk_params.uoffset = args->data;
|
||||
bulk_params.mode = args->mode;
|
||||
|
||||
Reference in New Issue
Block a user