* [PATCH] [media] vcodec: mediatek: Remove double parentheses
@ 2017-03-17 21:01 ` Matthias Kaehlcke
0 siblings, 0 replies; 7+ messages in thread
From: Matthias Kaehlcke @ 2017-03-17 21:01 UTC (permalink / raw)
To: Andrew-CT Chen, Mauro Carvalho Chehab, Matthias Brugger
Cc: Hans Verkuil, PoChun Lin, Julia Lawall, Arnd Bergmann,
linux-media, linux-arm-kernel, linux-mediatek, linux-kernel,
Matthias Kaehlcke
The extra pairs of parentheses are not needed and cause clang
warnings like this:
drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c:158:32: error: equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality]
if ((inst->work_bufs[i].size == 0))
~~~~~~~~~~~~~~~~~~~~~~~~^~~~
drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c:158:32: note: remove extraneous parentheses around the comparison to silence this warning
if ((inst->work_bufs[i].size == 0))
~ ^ ~
drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c:158:32: note: use '=' to turn this equality comparison into an assignment
if ((inst->work_bufs[i].size == 0))
^~
=
Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
---
drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c b/drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c
index 544f57186243..129cc74b4fe4 100644
--- a/drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c
+++ b/drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c
@@ -155,7 +155,7 @@ static void vp8_enc_free_work_buf(struct venc_vp8_inst *inst)
/* Buffers need to be freed by AP. */
for (i = 0; i < VENC_VP8_VPU_WORK_BUF_MAX; i++) {
- if ((inst->work_bufs[i].size == 0))
+ if (inst->work_bufs[i].size == 0)
continue;
mtk_vcodec_mem_free(inst->ctx, &inst->work_bufs[i]);
}
@@ -172,7 +172,7 @@ static int vp8_enc_alloc_work_buf(struct venc_vp8_inst *inst)
mtk_vcodec_debug_enter(inst);
for (i = 0; i < VENC_VP8_VPU_WORK_BUF_MAX; i++) {
- if ((wb[i].size == 0))
+ if (wb[i].size == 0)
continue;
/*
* This 'wb' structure is set by VPU side and shared to AP for
--
2.12.0.367.g23dc2f6d3c-goog
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH] [media] vcodec: mediatek: Remove double parentheses
@ 2017-03-17 21:01 ` Matthias Kaehlcke
0 siblings, 0 replies; 7+ messages in thread
From: Matthias Kaehlcke @ 2017-03-17 21:01 UTC (permalink / raw)
To: Andrew-CT Chen, Mauro Carvalho Chehab, Matthias Brugger
Cc: Arnd Bergmann, linux-kernel, Julia Lawall, Matthias Kaehlcke,
Hans Verkuil, PoChun Lin, linux-mediatek, linux-arm-kernel,
linux-media
The extra pairs of parentheses are not needed and cause clang
warnings like this:
drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c:158:32: error: equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality]
if ((inst->work_bufs[i].size == 0))
~~~~~~~~~~~~~~~~~~~~~~~~^~~~
drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c:158:32: note: remove extraneous parentheses around the comparison to silence this warning
if ((inst->work_bufs[i].size == 0))
~ ^ ~
drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c:158:32: note: use '=' to turn this equality comparison into an assignment
if ((inst->work_bufs[i].size == 0))
^~
=
Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
---
drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c b/drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c
index 544f57186243..129cc74b4fe4 100644
--- a/drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c
+++ b/drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c
@@ -155,7 +155,7 @@ static void vp8_enc_free_work_buf(struct venc_vp8_inst *inst)
/* Buffers need to be freed by AP. */
for (i = 0; i < VENC_VP8_VPU_WORK_BUF_MAX; i++) {
- if ((inst->work_bufs[i].size == 0))
+ if (inst->work_bufs[i].size == 0)
continue;
mtk_vcodec_mem_free(inst->ctx, &inst->work_bufs[i]);
}
@@ -172,7 +172,7 @@ static int vp8_enc_alloc_work_buf(struct venc_vp8_inst *inst)
mtk_vcodec_debug_enter(inst);
for (i = 0; i < VENC_VP8_VPU_WORK_BUF_MAX; i++) {
- if ((wb[i].size == 0))
+ if (wb[i].size == 0)
continue;
/*
* This 'wb' structure is set by VPU side and shared to AP for
--
2.12.0.367.g23dc2f6d3c-goog
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH] [media] vcodec: mediatek: Remove double parentheses
@ 2017-03-17 21:01 ` Matthias Kaehlcke
0 siblings, 0 replies; 7+ messages in thread
From: Matthias Kaehlcke @ 2017-03-17 21:01 UTC (permalink / raw)
To: linux-arm-kernel
The extra pairs of parentheses are not needed and cause clang
warnings like this:
drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c:158:32: error: equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality]
if ((inst->work_bufs[i].size == 0))
~~~~~~~~~~~~~~~~~~~~~~~~^~~~
drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c:158:32: note: remove extraneous parentheses around the comparison to silence this warning
if ((inst->work_bufs[i].size == 0))
~ ^ ~
drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c:158:32: note: use '=' to turn this equality comparison into an assignment
if ((inst->work_bufs[i].size == 0))
^~
=
Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
---
drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c b/drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c
index 544f57186243..129cc74b4fe4 100644
--- a/drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c
+++ b/drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c
@@ -155,7 +155,7 @@ static void vp8_enc_free_work_buf(struct venc_vp8_inst *inst)
/* Buffers need to be freed by AP. */
for (i = 0; i < VENC_VP8_VPU_WORK_BUF_MAX; i++) {
- if ((inst->work_bufs[i].size == 0))
+ if (inst->work_bufs[i].size == 0)
continue;
mtk_vcodec_mem_free(inst->ctx, &inst->work_bufs[i]);
}
@@ -172,7 +172,7 @@ static int vp8_enc_alloc_work_buf(struct venc_vp8_inst *inst)
mtk_vcodec_debug_enter(inst);
for (i = 0; i < VENC_VP8_VPU_WORK_BUF_MAX; i++) {
- if ((wb[i].size == 0))
+ if (wb[i].size == 0)
continue;
/*
* This 'wb' structure is set by VPU side and shared to AP for
--
2.12.0.367.g23dc2f6d3c-goog
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH] [media] vcodec: mediatek: Remove double parentheses
2017-03-17 21:01 ` Matthias Kaehlcke
@ 2017-03-31 23:58 ` Matthias Kaehlcke
-1 siblings, 0 replies; 7+ messages in thread
From: Matthias Kaehlcke @ 2017-03-31 23:58 UTC (permalink / raw)
To: Andrew-CT Chen, Mauro Carvalho Chehab, Matthias Brugger
Cc: Hans Verkuil, PoChun Lin, Julia Lawall, Arnd Bergmann,
linux-media, linux-arm-kernel, linux-mediatek, linux-kernel
El Fri, Mar 17, 2017 at 02:01:33PM -0700 Matthias Kaehlcke ha dit:
> The extra pairs of parentheses are not needed and cause clang
> warnings like this:
>
> drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c:158:32: error: equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality]
> if ((inst->work_bufs[i].size == 0))
> ~~~~~~~~~~~~~~~~~~~~~~~~^~~~
> drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c:158:32: note: remove extraneous parentheses around the comparison to silence this warning
> if ((inst->work_bufs[i].size == 0))
> ~ ^ ~
> drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c:158:32: note: use '=' to turn this equality comparison into an assignment
> if ((inst->work_bufs[i].size == 0))
> ^~
> =
>
> Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
> ---
> drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c b/drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c
> index 544f57186243..129cc74b4fe4 100644
> --- a/drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c
> +++ b/drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c
> @@ -155,7 +155,7 @@ static void vp8_enc_free_work_buf(struct venc_vp8_inst *inst)
>
> /* Buffers need to be freed by AP. */
> for (i = 0; i < VENC_VP8_VPU_WORK_BUF_MAX; i++) {
> - if ((inst->work_bufs[i].size == 0))
> + if (inst->work_bufs[i].size == 0)
> continue;
> mtk_vcodec_mem_free(inst->ctx, &inst->work_bufs[i]);
> }
> @@ -172,7 +172,7 @@ static int vp8_enc_alloc_work_buf(struct venc_vp8_inst *inst)
> mtk_vcodec_debug_enter(inst);
>
> for (i = 0; i < VENC_VP8_VPU_WORK_BUF_MAX; i++) {
> - if ((wb[i].size == 0))
> + if (wb[i].size == 0)
> continue;
> /*
> * This 'wb' structure is set by VPU side and shared to AP for
Ping? Any feedback on this patch?
Cheers
Matthias
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH] [media] vcodec: mediatek: Remove double parentheses
@ 2017-03-31 23:58 ` Matthias Kaehlcke
0 siblings, 0 replies; 7+ messages in thread
From: Matthias Kaehlcke @ 2017-03-31 23:58 UTC (permalink / raw)
To: linux-arm-kernel
El Fri, Mar 17, 2017 at 02:01:33PM -0700 Matthias Kaehlcke ha dit:
> The extra pairs of parentheses are not needed and cause clang
> warnings like this:
>
> drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c:158:32: error: equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality]
> if ((inst->work_bufs[i].size == 0))
> ~~~~~~~~~~~~~~~~~~~~~~~~^~~~
> drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c:158:32: note: remove extraneous parentheses around the comparison to silence this warning
> if ((inst->work_bufs[i].size == 0))
> ~ ^ ~
> drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c:158:32: note: use '=' to turn this equality comparison into an assignment
> if ((inst->work_bufs[i].size == 0))
> ^~
> =
>
> Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
> ---
> drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c b/drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c
> index 544f57186243..129cc74b4fe4 100644
> --- a/drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c
> +++ b/drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c
> @@ -155,7 +155,7 @@ static void vp8_enc_free_work_buf(struct venc_vp8_inst *inst)
>
> /* Buffers need to be freed by AP. */
> for (i = 0; i < VENC_VP8_VPU_WORK_BUF_MAX; i++) {
> - if ((inst->work_bufs[i].size == 0))
> + if (inst->work_bufs[i].size == 0)
> continue;
> mtk_vcodec_mem_free(inst->ctx, &inst->work_bufs[i]);
> }
> @@ -172,7 +172,7 @@ static int vp8_enc_alloc_work_buf(struct venc_vp8_inst *inst)
> mtk_vcodec_debug_enter(inst);
>
> for (i = 0; i < VENC_VP8_VPU_WORK_BUF_MAX; i++) {
> - if ((wb[i].size == 0))
> + if (wb[i].size == 0)
> continue;
> /*
> * This 'wb' structure is set by VPU side and shared to AP for
Ping? Any feedback on this patch?
Cheers
Matthias
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] [media] vcodec: mediatek: Remove double parentheses
2017-03-31 23:58 ` Matthias Kaehlcke
@ 2017-04-03 8:35 ` Hans Verkuil
-1 siblings, 0 replies; 7+ messages in thread
From: Hans Verkuil @ 2017-04-03 8:35 UTC (permalink / raw)
To: Matthias Kaehlcke, Andrew-CT Chen, Mauro Carvalho Chehab,
Matthias Brugger
Cc: Hans Verkuil, PoChun Lin, Julia Lawall, Arnd Bergmann,
linux-media, linux-arm-kernel, linux-mediatek, linux-kernel
On 04/01/2017 01:58 AM, Matthias Kaehlcke wrote:
> El Fri, Mar 17, 2017 at 02:01:33PM -0700 Matthias Kaehlcke ha dit:
>
>> The extra pairs of parentheses are not needed and cause clang
>> warnings like this:
>>
>> drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c:158:32: error: equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality]
>> if ((inst->work_bufs[i].size == 0))
>> ~~~~~~~~~~~~~~~~~~~~~~~~^~~~
>> drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c:158:32: note: remove extraneous parentheses around the comparison to silence this warning
>> if ((inst->work_bufs[i].size == 0))
>> ~ ^ ~
>> drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c:158:32: note: use '=' to turn this equality comparison into an assignment
>> if ((inst->work_bufs[i].size == 0))
>> ^~
>> =
>>
>> Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
>> ---
>> drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c | 4 ++--
>> 1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c b/drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c
>> index 544f57186243..129cc74b4fe4 100644
>> --- a/drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c
>> +++ b/drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c
>> @@ -155,7 +155,7 @@ static void vp8_enc_free_work_buf(struct venc_vp8_inst *inst)
>>
>> /* Buffers need to be freed by AP. */
>> for (i = 0; i < VENC_VP8_VPU_WORK_BUF_MAX; i++) {
>> - if ((inst->work_bufs[i].size == 0))
>> + if (inst->work_bufs[i].size == 0)
>> continue;
>> mtk_vcodec_mem_free(inst->ctx, &inst->work_bufs[i]);
>> }
>> @@ -172,7 +172,7 @@ static int vp8_enc_alloc_work_buf(struct venc_vp8_inst *inst)
>> mtk_vcodec_debug_enter(inst);
>>
>> for (i = 0; i < VENC_VP8_VPU_WORK_BUF_MAX; i++) {
>> - if ((wb[i].size == 0))
>> + if (wb[i].size == 0)
>> continue;
>> /*
>> * This 'wb' structure is set by VPU side and shared to AP for
>
> Ping? Any feedback on this patch?
>
> Cheers
>
> Matthias
>
It's part of a pull request that is waiting to be merged. Just be patient.
Regards,
Hans
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH] [media] vcodec: mediatek: Remove double parentheses
@ 2017-04-03 8:35 ` Hans Verkuil
0 siblings, 0 replies; 7+ messages in thread
From: Hans Verkuil @ 2017-04-03 8:35 UTC (permalink / raw)
To: linux-arm-kernel
On 04/01/2017 01:58 AM, Matthias Kaehlcke wrote:
> El Fri, Mar 17, 2017 at 02:01:33PM -0700 Matthias Kaehlcke ha dit:
>
>> The extra pairs of parentheses are not needed and cause clang
>> warnings like this:
>>
>> drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c:158:32: error: equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality]
>> if ((inst->work_bufs[i].size == 0))
>> ~~~~~~~~~~~~~~~~~~~~~~~~^~~~
>> drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c:158:32: note: remove extraneous parentheses around the comparison to silence this warning
>> if ((inst->work_bufs[i].size == 0))
>> ~ ^ ~
>> drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c:158:32: note: use '=' to turn this equality comparison into an assignment
>> if ((inst->work_bufs[i].size == 0))
>> ^~
>> =
>>
>> Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
>> ---
>> drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c | 4 ++--
>> 1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c b/drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c
>> index 544f57186243..129cc74b4fe4 100644
>> --- a/drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c
>> +++ b/drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c
>> @@ -155,7 +155,7 @@ static void vp8_enc_free_work_buf(struct venc_vp8_inst *inst)
>>
>> /* Buffers need to be freed by AP. */
>> for (i = 0; i < VENC_VP8_VPU_WORK_BUF_MAX; i++) {
>> - if ((inst->work_bufs[i].size == 0))
>> + if (inst->work_bufs[i].size == 0)
>> continue;
>> mtk_vcodec_mem_free(inst->ctx, &inst->work_bufs[i]);
>> }
>> @@ -172,7 +172,7 @@ static int vp8_enc_alloc_work_buf(struct venc_vp8_inst *inst)
>> mtk_vcodec_debug_enter(inst);
>>
>> for (i = 0; i < VENC_VP8_VPU_WORK_BUF_MAX; i++) {
>> - if ((wb[i].size == 0))
>> + if (wb[i].size == 0)
>> continue;
>> /*
>> * This 'wb' structure is set by VPU side and shared to AP for
>
> Ping? Any feedback on this patch?
>
> Cheers
>
> Matthias
>
It's part of a pull request that is waiting to be merged. Just be patient.
Regards,
Hans
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2017-04-03 8:35 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-17 21:01 [PATCH] [media] vcodec: mediatek: Remove double parentheses Matthias Kaehlcke
2017-03-17 21:01 ` Matthias Kaehlcke
2017-03-17 21:01 ` Matthias Kaehlcke
2017-03-31 23:58 ` Matthias Kaehlcke
2017-03-31 23:58 ` Matthias Kaehlcke
2017-04-03 8:35 ` Hans Verkuil
2017-04-03 8:35 ` Hans Verkuil
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.