Skip to content
Commit 5b0ef98e authored by Dafna Hirschfeld's avatar Dafna Hirschfeld Committed by Chun-Kuang Hu
Browse files

drm/mediatek: Test component initialization earlier in the function mtk_drm_crtc_create



The initialization is currently tested in a later stage in
the function for no reason.
In addition, the test '!comp' will never fail since comp is
set with the '&' operator. Instead, test if a comp was not
initialized by testing "!comp->dev".

Signed-off-by: default avatarDafna Hirschfeld <dafna.hirschfeld@collabora.com>
Signed-off-by: default avatarChun-Kuang Hu <chunkuang.hu@kernel.org>
parent 58e4c539
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment