]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm/dpu: Fix variable dereferenced before check
authorsunliming <sunliming@kylinos.cn>
Thu, 23 Jun 2022 01:27:07 +0000 (09:27 +0800)
committerAbhinav Kumar <quic_abhinavk@quicinc.com>
Thu, 23 Jun 2022 17:34:36 +0000 (10:34 -0700)
commit93d3a70e3f1ef9d8e3b75b73dc0d12a177aa10b3
treef5ccf2410948aadeff45a16459696b0526e081df
parentcbbdae14e52c7316f06e891f63901f3921de20f6
drm/msm/dpu: Fix variable dereferenced before check

Fixes the following smatch warning:

drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c:261
dpu_encoder_phys_wb_atomic_check() warn: variable dereferenced before check 'conn_state'

Fixes: bceb6e7b768b ("drm/msm/dpu: introduce the dpu_encoder_phys_* for writeback")
Signed-off-by: sunliming <sunliming@kylinos.cn>
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Patchwork: https://patchwork.freedesktop.org/patch/490850/
Link: https://lore.kernel.org/r/20220623012707.453972-1-sunliming@kylinos.cn
Signed-off-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c