[FFmpeg-devel,v2,4/4] hwcontext_opencl: remove an unused variable

Submitted by Jun Zhao on June 21, 2018, 11:45 a.m.

Details

Message ID 1529581546-5892-4-git-send-email-mypopydev@gmail.com
State New
Headers show

Commit Message

Jun Zhao June 21, 2018, 11:45 a.m.
remove an unused variable

Signed-off-by: Jun Zhao <mypopydev@gmail.com>
---
 libavutil/hwcontext_opencl.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Mark Thompson June 28, 2018, 3:51 p.m.
On 21/06/18 12:45, Jun Zhao wrote:
> remove an unused variable
> 
> Signed-off-by: Jun Zhao <mypopydev@gmail.com>
> ---
>  libavutil/hwcontext_opencl.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/libavutil/hwcontext_opencl.c b/libavutil/hwcontext_opencl.c
> index 295d6be..4718a86 100644
> --- a/libavutil/hwcontext_opencl.c
> +++ b/libavutil/hwcontext_opencl.c
> @@ -929,7 +929,6 @@ static int opencl_enumerate_intel_media_vaapi_devices(AVHWDeviceContext *hwdev,
>      clGetDeviceIDsFromVA_APIMediaAdapterINTEL_fn
>          clGetDeviceIDsFromVA_APIMediaAdapterINTEL;
>      cl_int cle;
> -    int err;
>  
>      clGetDeviceIDsFromVA_APIMediaAdapterINTEL =
>          clGetExtensionFunctionAddressForPlatform(platform_id,
> 

LGTM.

Thanks,

- Mark
mypopy@gmail.com July 2, 2018, 2:16 a.m.
On Thu, Jun 28, 2018 at 11:52 PM Mark Thompson <sw@jkqxz.net> wrote:
>
> On 21/06/18 12:45, Jun Zhao wrote:
> > remove an unused variable
> >
> > Signed-off-by: Jun Zhao <mypopydev@gmail.com>
> > ---
> >  libavutil/hwcontext_opencl.c | 1 -
> >  1 file changed, 1 deletion(-)
> >
> > diff --git a/libavutil/hwcontext_opencl.c b/libavutil/hwcontext_opencl.c
> > index 295d6be..4718a86 100644
> > --- a/libavutil/hwcontext_opencl.c
> > +++ b/libavutil/hwcontext_opencl.c
> > @@ -929,7 +929,6 @@ static int opencl_enumerate_intel_media_vaapi_devices(AVHWDeviceContext *hwdev,
> >      clGetDeviceIDsFromVA_APIMediaAdapterINTEL_fn
> >          clGetDeviceIDsFromVA_APIMediaAdapterINTEL;
> >      cl_int cle;
> > -    int err;
> >
> >      clGetDeviceIDsFromVA_APIMediaAdapterINTEL =
> >          clGetExtensionFunctionAddressForPlatform(platform_id,
> >
>
> LGTM.
>
> Thanks,
>
> - Mark
Applied, thanks

Patch hide | download patch | download mbox

diff --git a/libavutil/hwcontext_opencl.c b/libavutil/hwcontext_opencl.c
index 295d6be..4718a86 100644
--- a/libavutil/hwcontext_opencl.c
+++ b/libavutil/hwcontext_opencl.c
@@ -929,7 +929,6 @@  static int opencl_enumerate_intel_media_vaapi_devices(AVHWDeviceContext *hwdev,
     clGetDeviceIDsFromVA_APIMediaAdapterINTEL_fn
         clGetDeviceIDsFromVA_APIMediaAdapterINTEL;
     cl_int cle;
-    int err;
 
     clGetDeviceIDsFromVA_APIMediaAdapterINTEL =
         clGetExtensionFunctionAddressForPlatform(platform_id,