From: Jeongtae Park Date: Tue, 3 Jul 2018 06:01:46 +0000 (+0900) Subject: [COMMON] fimc-is2: remove unnecessary null check: buf X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=68ac6b8511e3496aba88f179ac83bc8296278034;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] fimc-is2: remove unnecessary null check: buf Prevent Defect ID: CID 232737, 232738 PR JIRA ID: CPR-32 Change-Id: I013cc0c5dee26c958424f91ea14d71832123c637 Signed-off-by: Jeongtae Park --- diff --git a/drivers/media/platform/exynos/fimc-is2/fimc-is-video-3aaf.c b/drivers/media/platform/exynos/fimc-is2/fimc-is-video-3aaf.c index 415d7a1b8016..d9b240f0e8d4 100644 --- a/drivers/media/platform/exynos/fimc-is2/fimc-is-video-3aaf.c +++ b/drivers/media/platform/exynos/fimc-is2/fimc-is-video-3aaf.c @@ -400,8 +400,7 @@ static int fimc_is_3xf_video_dqbuf(struct file *file, void *priv, if (ret) merr("dqbuf is fail(%d)", vctx, ret); - if (!buf) - mvdbgs(3, "%s(index: %d)\n", vctx, &vctx->queue, __func__, buf->index); + mvdbgs(3, "%s(index: %d)\n", vctx, &vctx->queue, __func__, buf->index); return ret; } diff --git a/drivers/media/platform/exynos/fimc-is2/fimc-is-video-3aag.c b/drivers/media/platform/exynos/fimc-is2/fimc-is-video-3aag.c index 3b76bde46316..167930ca9b54 100644 --- a/drivers/media/platform/exynos/fimc-is2/fimc-is-video-3aag.c +++ b/drivers/media/platform/exynos/fimc-is2/fimc-is-video-3aag.c @@ -400,8 +400,7 @@ static int fimc_is_3xg_video_dqbuf(struct file *file, void *priv, if (ret) merr("dqbuf is fail(%d)", vctx, ret); - if (!buf) - mvdbgs(3, "%s(index: %d)\n", vctx, &vctx->queue, __func__, buf->index); + mvdbgs(3, "%s(index: %d)\n", vctx, &vctx->queue, __func__, buf->index); return ret; }