mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 17:13:52 +02:00
staging: vc04_services: Do not log error on kzalloc()
Do not log any error for kzalloc() error path. kzalloc() already reports such errors. Signed-off-by: Umang Jain <umang.jain@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Link: https://lore.kernel.org/r/20240321130737.898154-4-umang.jain@ideasonboard.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
57c0b41bbe
commit
ff6643de78
|
|
@ -690,7 +690,6 @@ int vchiq_initialise(struct vchiq_instance **instance_out)
|
|||
|
||||
instance = kzalloc(sizeof(*instance), GFP_KERNEL);
|
||||
if (!instance) {
|
||||
dev_err(state->dev, "core: %s: Cannot allocate vchiq instance\n", __func__);
|
||||
ret = -ENOMEM;
|
||||
goto failed;
|
||||
}
|
||||
|
|
@ -956,10 +955,8 @@ vchiq_blocking_bulk_transfer(struct vchiq_instance *instance, unsigned int handl
|
|||
}
|
||||
} else {
|
||||
waiter = kzalloc(sizeof(*waiter), GFP_KERNEL);
|
||||
if (!waiter) {
|
||||
dev_err(service->state->dev, "core: %s: - Out of memory\n", __func__);
|
||||
if (!waiter)
|
||||
return -ENOMEM;
|
||||
}
|
||||
}
|
||||
|
||||
status = vchiq_bulk_transfer(instance, handle, data, NULL, size,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user