Commit ff6643de authored by Umang Jain's avatar Umang Jain Committed by Greg Kroah-Hartman
Browse files

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: default avatarUmang Jain <umang.jain@ideasonboard.com>
Reviewed-by: default avatarKieran Bingham <kieran.bingham@ideasonboard.com>
Link: https://lore.kernel.org/r/20240321130737.898154-4-umang.jain@ideasonboard.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 57c0b41b
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -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,11 +955,9 @@ 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,
				     &waiter->bulk_waiter,