summaryrefslogtreecommitdiff
path: root/drivers/media
diff options
context:
space:
mode:
authorpanpan liu <panpan1.liu@samsung.com>2014-08-01 16:58:23 +0800
committerChanho Park <chanho61.park@samsung.com>2014-11-18 12:00:23 +0900
commite95bdd0c7a545086ed24ec0a9ceec3088433ad2b (patch)
tree4982ca5256953987110926fd2213e7af8dfbe6f8 /drivers/media
parent0c30cd7414ad45dab0574b365ba4b102e7607b86 (diff)
downloadlinux-3.10-e95bdd0c7a545086ed24ec0a9ceec3088433ad2b.tar.gz
linux-3.10-e95bdd0c7a545086ed24ec0a9ceec3088433ad2b.tar.bz2
linux-3.10-e95bdd0c7a545086ed24ec0a9ceec3088433ad2b.zip
media: s5p_mfc_dec: delete the redundant code
Because the api s5p_mfc_queue_setup has already realized the same function Change-Id: Ieffc9cd9d7e22d95f988ec66f232951c6f4c646c Signed-off-by: panpan liu <panpan1.liu@samsung.com>
Diffstat (limited to 'drivers/media')
-rwxr-xr-xdrivers/media/platform/s5p-mfc/s5p_mfc_dec.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c b/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c
index ff9841029a9..223064a3d0a 100755
--- a/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c
+++ b/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c
@@ -544,14 +544,7 @@ static int vidioc_reqbufs(struct file *file, void *priv,
mfc_err("vb2_reqbufs on capture failed\n");
return ret;
}
- if (reqbufs->count < ctx->pb_count) {
- mfc_err("Not enough buffers allocated\n");
- reqbufs->count = 0;
- s5p_mfc_clock_on();
- ret = vb2_reqbufs(&ctx->vq_dst, reqbufs);
- s5p_mfc_clock_off();
- return -ENOMEM;
- }
+
ctx->total_dpb_count = reqbufs->count;
ret = s5p_mfc_hw_call(dev->mfc_ops, alloc_codec_buffers, ctx);
if (ret) {