[Libva] [PATCH Intel-VA] Fix suspiciously placed semicolon at if statement.

Xiang, Haihao haihao.xiang at intel.com
Sat Sep 5 22:23:07 PDT 2015


Applied.

Thanks
Haihao

> Signed-off-by: Lim Siew Hoon <siew.hoon.lim at intel.com>
> ---
>  src/gen6_mfc.c  | 4 ++--
>  src/gen75_mfc.c | 4 ++--
>  src/gen8_mfc.c  | 4 ++--
>  src/gen9_mfc.c  | 4 ++--
>  4 files changed, 8 insertions(+), 8 deletions(-)
> 
> diff --git a/src/gen6_mfc.c b/src/gen6_mfc.c
> index 455721f..1b4fc71 100644
> --- a/src/gen6_mfc.c
> +++ b/src/gen6_mfc.c
> @@ -564,8 +564,8 @@ gen6_mfc_init(VADriverContextP ctx,
>      mfc_context->mfc_indirect_pak_bse_object.bo = NULL;
>  
>      for (i = 0; i < NUM_MFC_DMV_BUFFERS; i++){
> -        if ( mfc_context->direct_mv_buffers[i].bo != NULL);
> -        dri_bo_unreference(mfc_context->direct_mv_buffers[i].bo);
> +        if (mfc_context->direct_mv_buffers[i].bo != NULL)
> +            dri_bo_unreference(mfc_context->direct_mv_buffers[i].bo);
>          mfc_context->direct_mv_buffers[i].bo = NULL;
>      }
>  
> diff --git a/src/gen75_mfc.c b/src/gen75_mfc.c
> index a6a3c1d..db5f382 100644
> --- a/src/gen75_mfc.c
> +++ b/src/gen75_mfc.c
> @@ -458,8 +458,8 @@ static void gen75_mfc_init(VADriverContextP ctx,
>      mfc_context->mfc_indirect_pak_bse_object.bo = NULL;
>  
>      for (i = 0; i < NUM_MFC_DMV_BUFFERS; i++){
> -        if ( mfc_context->direct_mv_buffers[i].bo != NULL);
> -        dri_bo_unreference(mfc_context->direct_mv_buffers[i].bo);
> +        if (mfc_context->direct_mv_buffers[i].bo != NULL)
> +            dri_bo_unreference(mfc_context->direct_mv_buffers[i].bo);
>          mfc_context->direct_mv_buffers[i].bo = NULL;
>      }
>  
> diff --git a/src/gen8_mfc.c b/src/gen8_mfc.c
> index edf957b..2da27a4 100644
> --- a/src/gen8_mfc.c
> +++ b/src/gen8_mfc.c
> @@ -511,8 +511,8 @@ static void gen8_mfc_init(VADriverContextP ctx,
>      mfc_context->mfc_indirect_pak_bse_object.bo = NULL;
>  
>      for (i = 0; i < NUM_MFC_DMV_BUFFERS; i++){
> -        if ( mfc_context->direct_mv_buffers[i].bo != NULL);
> -        dri_bo_unreference(mfc_context->direct_mv_buffers[i].bo);
> +        if (mfc_context->direct_mv_buffers[i].bo != NULL)
> +            dri_bo_unreference(mfc_context->direct_mv_buffers[i].bo);
>          mfc_context->direct_mv_buffers[i].bo = NULL;
>      }
>  
> diff --git a/src/gen9_mfc.c b/src/gen9_mfc.c
> index 63a9c21..6cca579 100644
> --- a/src/gen9_mfc.c
> +++ b/src/gen9_mfc.c
> @@ -435,8 +435,8 @@ static void gen9_mfc_init(VADriverContextP ctx,
>      mfc_context->mfc_indirect_pak_bse_object.bo = NULL;
>  
>      for (i = 0; i < NUM_MFC_DMV_BUFFERS; i++){
> -        if ( mfc_context->direct_mv_buffers[i].bo != NULL);
> -        dri_bo_unreference(mfc_context->direct_mv_buffers[i].bo);
> +        if (mfc_context->direct_mv_buffers[i].bo != NULL)
> +            dri_bo_unreference(mfc_context->direct_mv_buffers[i].bo);
>          mfc_context->direct_mv_buffers[i].bo = NULL;
>      }
>  




More information about the Libva mailing list