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

Commit 1b7bd6f8 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: kgsl: Assign a default value to the variable ret"

parents 2c0f59a7 70dce4b4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -199,7 +199,7 @@ static int kgsl_reclaim_callback(struct notifier_block *nb,
	struct kgsl_process_private *p, *process = NULL;
	struct kgsl_mem_entry *entry;
	struct kgsl_memdesc *memdesc;
	int valid_entry, next = 0, ret;
	int valid_entry, next = 0, ret = NOTIFY_OK;

	spin_lock(&kgsl_driver.proclist_lock);
	list_for_each_entry(p, &kgsl_driver.process_list, list) {
@@ -212,7 +212,7 @@ static int kgsl_reclaim_callback(struct notifier_block *nb,
	spin_unlock(&kgsl_driver.proclist_lock);

	if (!process)
		return NOTIFY_OK;
		return ret;

	/*
	 * If we do not get the lock here, it means that the buffers are