OSDN Git Service

adreno_tz: Remove unnecessary devfreq NULL check in tz_handler()
authorHareesh Gundu <hareeshg@codeaurora.org>
Fri, 26 May 2017 10:20:25 +0000 (15:50 +0530)
committerHareesh Gundu <hareeshg@codeaurora.org>
Fri, 26 May 2017 12:14:28 +0000 (17:44 +0530)
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: Hareesh Gundu <hareeshg@codeaurora.org>
drivers/devfreq/governor_msm_adreno_tz.c

index de21a23..f31089d 100644 (file)
@@ -534,8 +534,6 @@ static int tz_handler(struct devfreq *devfreq, unsigned int event, void *data)
                                        (devfreq->profile),
                                        struct msm_adreno_extended_profile,
                                        profile);
-       BUG_ON(devfreq == NULL);
-
        switch (event) {
        case DEVFREQ_GOV_START:
                result = tz_start(devfreq);