PM / devfreq: mtk-cci: Fix variable deferencing before NULL check
authorSukrut Bellary <sukrut.bellary@linux.com>
Thu, 18 May 2023 08:40:33 +0000 (01:40 -0700)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 29 May 2023 14:25:31 +0000 (23:25 +0900)
commita83bfdca8b2098999e3edfb87e98925e019eb818
tree0c1732edebb9bb075168b24f081dd4e1d17a9f3c
parentccb69e228ea48f8ea1e4a7dfeedf501329a9fdf4
PM / devfreq: mtk-cci: Fix variable deferencing before NULL check

smatch warning:
drivers/devfreq/mtk-cci-devfreq.c:135 mtk_ccifreq_target()
warn: variable dereferenced before check 'drv' (see line 130)

This is based on static analysis only. Compilation tested.

Signed-off-by: Sukrut Bellary <sukrut.bellary@linux.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/devfreq/mtk-cci-devfreq.c