From 68ac6b8511e3496aba88f179ac83bc8296278034 Mon Sep 17 00:00:00 2001 From: Jeongtae Park Date: Tue, 3 Jul 2018 15:01:46 +0900 Subject: [PATCH] [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 --- drivers/media/platform/exynos/fimc-is2/fimc-is-video-3aaf.c | 3 +-- drivers/media/platform/exynos/fimc-is2/fimc-is-video-3aag.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) 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; } -- 2.20.1