Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a9289fcb authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: vidc: Fix handling of ocmem_notifier_register() return value"

parents 35daf1c2 f64c5bbc
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -3017,9 +3017,10 @@ static void venus_hfi_ocmem_init(struct venus_hfi_device *device)
	ocmem->vidc_ocmem_nb.notifier_call = venus_hfi_ocmem_notify_handler;
	ocmem->handle =
		ocmem_notifier_register(OCMEM_VIDEO, &ocmem->vidc_ocmem_nb);
	if (!ocmem->handle) {
		dprintk(VIDC_WARN, "Failed to register OCMEM notifier.");
		dprintk(VIDC_INFO, " Performance will be impacted\n");
	if (IS_ERR_OR_NULL(ocmem->handle)) {
		dprintk(VIDC_WARN,
				"Failed to register OCMEM notifier. Performance might be impacted\n");
		ocmem->handle = NULL;
	}
}