summaryrefslogtreecommitdiffstats
path: root/drivers/pwm
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@linaro.org>2023-10-13 11:25:15 +0300
committerAbhinav Kumar <quic_abhinavk@quicinc.com>2023-11-17 15:32:49 -0800
commit56466f653cb59a8f46e991ad1e285f43afdca7d4 (patch)
tree8f38a5e775b9495f437f19a630830549e1af6464 /drivers/pwm
parent21133266ca12f82b6e59c9711258cca2097c167c (diff)
downloadlinux-stable-56466f653cb59a8f46e991ad1e285f43afdca7d4.tar.gz
linux-stable-56466f653cb59a8f46e991ad1e285f43afdca7d4.tar.bz2
linux-stable-56466f653cb59a8f46e991ad1e285f43afdca7d4.zip
drm/msm: remove unnecessary NULL check
This NULL check was required when it was added, but we shuffled the code around and now it's not. The inconsistent NULL checking triggers a Smatch warning: drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c:847 mdp5_init() warn: variable dereferenced before check 'mdp5_kms' (see line 782) Fixes: 1f50db2f3e1e ("drm/msm/mdp5: move resource allocation to the _probe function") Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Reviewed-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com> Patchwork: https://patchwork.freedesktop.org/patch/562559/ Link: https://lore.kernel.org/r/ZSj+6/J6YsoSpLak@kadam Signed-off-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Diffstat (limited to 'drivers/pwm')
0 files changed, 0 insertions, 0 deletions