]> git.baikalelectronics.ru Git - kernel.git/commit
drm/panel: ili9881c: Fix missing assignment to error return ret
authorColin Ian King <colin.king@canonical.com>
Tue, 26 Jun 2018 16:03:54 +0000 (17:03 +0100)
committerThierry Reding <treding@nvidia.com>
Tue, 10 Jul 2018 15:59:05 +0000 (17:59 +0200)
commitf29aed7564b64c9cbf26f4472f1b37fed9a2f262
tree508a7a0827a4bd828f98994cc55fe61f485a2ec2
parent5e4a6269d05f83c362bd6814942ae1779187be56
drm/panel: ili9881c: Fix missing assignment to error return ret

Currently, ret is being checked for an error condition however it
is not being assigned in the previous statement on the call of
function mipi_dsi_dcs_exit_sleep_mode.  Add in the missing assignment
of ret.

Detected by CoverityScan, CID#14701741470178 ("Unchecked return value")

Fixes: decef393a38b ("drm/panel: Add Ilitek ILI9881c panel driver")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180626160354.1363-1-colin.king@canonical.com
drivers/gpu/drm/panel/panel-ilitek-ili9881c.c