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

Commit cb6c273f authored by Hareesh Gundu's avatar Hareesh Gundu Committed by Abhilash Kumar
Browse files

adreno_tz: Remove unnecessary devfreq NULL check in tz_handler()



Caller of tz_handler() is having the NULL check for devfreq,So
we don’t need unnecessary NULL pointer check.

CRs-Fixed: 2046922
Change-Id: I42eb70ab19b4a5af193521d77bca86447a1ecdb8
Signed-off-by: default avatarHareesh Gundu <hareeshg@codeaurora.org>
Signed-off-by: default avatarAbhilash Kumar <krabhi@codeaurora.org>
parent d6686534
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -548,10 +548,6 @@ static int tz_handler(struct devfreq *devfreq, unsigned int event, void *data)
					(devfreq->profile),
					struct msm_adreno_extended_profile,
					profile);
	if (devfreq == NULL) {
		pr_err(TAG "NULL defvreq passed to tz_handler\n");
		return -EFAULT;
	}

	switch (event) {
	case DEVFREQ_GOV_START: