libs: vaapi: object: remove unrequired NULL check

Coverity scan bug:

Dereference after null check: Either the check against null is
unnecessary, or there may be a null pointer dereference.

Variable klass has been validated as non-NULL several time before in
gst_vaapi_object_new() function, so there is no need to check it
again.
This commit is contained in:
Víctor Manuel Jáquez Leal 2017-08-08 17:12:06 +02:00
parent d65ce31f14
commit d99d5704a4

View file

@ -98,7 +98,7 @@ gst_vaapi_object_new (const GstVaapiObjectClass * klass,
if (sub_size > 0)
memset (((guchar *) object) + sizeof (*object), 0, sub_size);
if (klass && klass->init)
if (klass->init)
klass->init (object);
return object;
}