media: st-delta: Remove unneeded NULL check in delta-v4l2
authorWan Jiabing <wanjiabing@vivo.com>
Mon, 16 May 2022 13:13:30 +0000 (14:13 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 20 Jun 2022 09:30:30 +0000 (10:30 +0100)
commit97185c4585678af316873d4e9725af9dc3796d9e
tree8afd06235facf0458bfc9005429529d751c0cb31
parent6aaf006c67798ac693eb24940953ab2e1b4d5577
media: st-delta: Remove unneeded NULL check in delta-v4l2

clk_prepare_enable() already checks NULL by using !clk.
clk_disable_unprepare() already checks NULL by using IS_ERR_OR_NULL.
Remove unneeded NULL checks before them.

Signed-off-by: Wan Jiabing <wanjiabing@vivo.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/st/sti/delta/delta-v4l2.c