OSDN Git Service

[media] gsc-m2m: Remove an unused var.
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Thu, 21 Aug 2014 21:05:39 +0000 (16:05 -0500)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 26 Aug 2014 21:52:00 +0000 (18:52 -0300)
drivers/media/platform/exynos-gsc/gsc-m2m.c: In function 'gsc_m2m_reqbufs':
drivers/media/platform/exynos-gsc/gsc-m2m.c:365:20: warning: variable 'frame' s
et but not used [-Wunused-but-set-variable]
  struct gsc_frame *frame;
                    ^

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/exynos-gsc/gsc-m2m.c

index e434f1f..74e1de6 100644 (file)
@@ -362,7 +362,6 @@ static int gsc_m2m_reqbufs(struct file *file, void *fh,
 {
        struct gsc_ctx *ctx = fh_to_ctx(fh);
        struct gsc_dev *gsc = ctx->gsc_dev;
-       struct gsc_frame *frame;
        u32 max_cnt;
 
        max_cnt = (reqbufs->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) ?
@@ -376,8 +375,6 @@ static int gsc_m2m_reqbufs(struct file *file, void *fh,
                        gsc_ctx_state_lock_clear(GSC_DST_FMT, ctx);
        }
 
-       frame = ctx_get_frame(ctx, reqbufs->type);
-
        return v4l2_m2m_reqbufs(file, ctx->m2m_ctx, reqbufs);
 }