diff options
author | Philipp Zabel <p.zabel@pengutronix.de> | 2015-03-24 20:30:54 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-04-10 16:09:03 +0300 |
commit | 6ba53b81b6f8ad0fde3d7834ad7714abc12aacaa (patch) | |
tree | 599933f22480f6776a6cac5ed52c0864ae862fb1 /drivers/media/platform/coda/coda-bit.c | |
parent | 650b939ecd3f0a1a9dc800155f7efadeb1794868 (diff) | |
download | linux-6ba53b81b6f8ad0fde3d7834ad7714abc12aacaa.tar.xz |
[media] coda: remove duplicate error messages for buffer allocations
coda_alloc_aux_buf already prints an error, no need to print duplicate
error messages all over the place.
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/platform/coda/coda-bit.c')
-rw-r--r-- | drivers/media/platform/coda/coda-bit.c | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/drivers/media/platform/coda/coda-bit.c b/drivers/media/platform/coda/coda-bit.c index 0073f5a5b86c..23041587c898 100644 --- a/drivers/media/platform/coda/coda-bit.c +++ b/drivers/media/platform/coda/coda-bit.c @@ -402,10 +402,8 @@ static int coda_alloc_context_buffers(struct coda_ctx *ctx, if (!ctx->parabuf.vaddr) { ret = coda_alloc_context_buf(ctx, &ctx->parabuf, CODA_PARA_BUF_SIZE, "parabuf"); - if (ret < 0) { - v4l2_err(&dev->v4l2_dev, "failed to allocate parabuf"); + if (ret < 0) return ret; - } } if (dev->devtype->product == CODA_DX6) @@ -417,22 +415,15 @@ static int coda_alloc_context_buffers(struct coda_ctx *ctx, DIV_ROUND_UP(q_data->height, 16)) * 3200 / 8 + 512; ret = coda_alloc_context_buf(ctx, &ctx->slicebuf, size, "slicebuf"); - if (ret < 0) { - v4l2_err(&dev->v4l2_dev, - "failed to allocate %d byte slice buffer", - ctx->slicebuf.size); + if (ret < 0) goto err; - } } if (!ctx->psbuf.vaddr && dev->devtype->product == CODA_7541) { ret = coda_alloc_context_buf(ctx, &ctx->psbuf, CODA7_PS_BUF_SIZE, "psbuf"); - if (ret < 0) { - v4l2_err(&dev->v4l2_dev, - "failed to allocate psmem buffer"); + if (ret < 0) goto err; - } } if (!ctx->workbuf.vaddr) { @@ -442,12 +433,8 @@ static int coda_alloc_context_buffers(struct coda_ctx *ctx, size += CODA9_PS_SAVE_SIZE; ret = coda_alloc_context_buf(ctx, &ctx->workbuf, size, "workbuf"); - if (ret < 0) { - v4l2_err(&dev->v4l2_dev, - "failed to allocate %d byte context buffer", - ctx->workbuf.size); + if (ret < 0) goto err; - } } return 0; |