video: driver: remove additional conditional check

there is a WARN_ON in place which will print the warning
in case of error, hence no need to have additional if check
for the same.

Change-Id: I09ca91fecd6cb8df4586621bb066754e39576d12
Signed-off-by: Dikshita Agarwal <quic_dikshita@quicinc.com>
このコミットが含まれているのは:
Dikshita Agarwal
2023-06-30 14:03:04 +05:30
コミット 5e5d278b91

ファイルの表示

@@ -75,9 +75,6 @@ static int __strict_inst_check(struct msm_vidc_inst *inst, const char *function)
WARN_ON(fatal);
if (fatal)
d_vpr_e("%s: strict check failed\n", function);
return fatal ? -EINVAL : 0;
}