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

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

Merge "msm: kgsl: Remove use of uninitialized variable"

parents 84462888 e188d278
Loading
Loading
Loading
Loading
+5 −7
Original line number Diff line number Diff line
@@ -80,15 +80,13 @@ static int devfreq_vbif_ev_handler(struct devfreq *devfreq,
	case DEVFREQ_GOV_START:
		mutex_lock(&df_lock);
		df = devfreq;
		if (df->profile->get_dev_status)
			ret = df->profile->get_dev_status(df->dev.parent,
					&stat);
		if (df->profile->get_dev_status &&
			!df->profile->get_dev_status(df->dev.parent, &stat) &&
			stat.private_data)
			dev_ab = stat.private_data;
		else
			ret = 0;
		if (ret || !stat.private_data)
			pr_warn("Device doesn't take AB votes!\n");
		else
			dev_ab = stat.private_data;

		mutex_unlock(&df_lock);

		ret = devfreq_vbif_update_bw(0, 0);