drm/nouveau/tegra: remove needless NULL check
authorGuo Zhengkui <guozhengkui@vivo.com>
Thu, 19 May 2022 07:29:48 +0000 (15:29 +0800)
committerLyude Paul <lyude@redhat.com>
Mon, 23 May 2022 20:13:17 +0000 (16:13 -0400)
commit1a3b1ea111c44d9dce9f70ba032531a223395a15
treeca347b42ae978a9576b5aa8715232f571d83d3a9
parente4f21d1436519fec3e181082c8e1c3fb00ec08a7
drm/nouveau/tegra: remove needless NULL check

There has already been NULL check in clk_prepare_enable() and
clk_disable_unprepare(), so remove needless NULL check before
calling them.

Signed-off-by: Guo Zhengkui <guozhengkui@vivo.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Signed-off-by: Lyude Paul <lyude@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220519072950.128268-1-guozhengkui@vivo.com
drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c