media: s5p_mfc_dec: delete the redundant code
authorpanpan liu <panpan1.liu@samsung.com>
Fri, 1 Aug 2014 08:58:23 +0000 (16:58 +0800)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 03:00:23 +0000 (12:00 +0900)
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>
drivers/media/platform/s5p-mfc/s5p_mfc_dec.c

index ff98410..223064a 100755 (executable)
@@ -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) {