]> git.baikalelectronics.ru Git - kernel.git/commit
video: exynos_mipi_dsi: Remove unnecessary NULL check
authorSachin Kamat <sachin.kamat@linaro.org>
Fri, 21 Sep 2012 05:06:47 +0000 (10:36 +0530)
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Sat, 22 Sep 2012 21:44:37 +0000 (21:44 +0000)
commitf9d2b3467ab0a4d906b404213c019b685103ad68
tree0bc2c84f9c192675fad7668354b3e01a3f83269d
parentb138b7963190a2d73513afe5a1bee4c9c8f93bb9
video: exynos_mipi_dsi: Remove unnecessary NULL check

'dsim' is allocated and checked for NULL in the probe function.
Hence this check is redundant. This cleanup also fixes a potential NULL
pointer dereference error when dsim which is NULL references its member
in the error print message.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Acked-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
drivers/video/exynos/exynos_mipi_dsi_common.c