From d3bc9faae6a4c71f9898db62c1e697e0ef175dbc Mon Sep 17 00:00:00 2001 From: Sylwester Nawrocki Date: Thu, 17 Apr 2014 19:01:22 +0200 Subject: [PATCH] s5p-mfc: Remove unused variable MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This fixes following compilation warning: drivers/media/platform/s5p-mfc/s5p_mfc_dec.c: In function ‘s5p_mfc_buf_prepare’: drivers/media/platform/s5p-mfc/s5p_mfc_dec.c:1045:15: warning: unused variable ‘index’ [-Wunused-variable] Change-Id: Id6c0c264c7169871df116ba6496b2e08e2638844 Signed-off-by: Sylwester Nawrocki --- drivers/media/platform/s5p-mfc/s5p_mfc_dec.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c b/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c index 2825727..0bae907 100644 --- a/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c +++ b/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c @@ -1042,7 +1042,6 @@ static int s5p_mfc_buf_prepare(struct vb2_buffer *vb) { struct vb2_queue *vq = vb->vb2_queue; struct s5p_mfc_ctx *ctx = fh_to_ctx(vq->drv_priv); - unsigned int index = vb->v4l2_buf.index; if (vq->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) { if (vb2_plane_size(vb, 0) < ctx->luma_size || -- 2.7.4