forked from marfrit/libva-v4l2-request-fourier
tree: Remove void * casts
void * can be assigned from and stored to any pointer type without any warning. Remove the explicit casts. Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
This commit is contained in:
+2
-4
@@ -46,8 +46,7 @@ VAStatus RequestCreateContext(VADriverContextP context, VAConfigID config_id,
|
||||
VASurfaceID *surfaces_ids, int surfaces_count,
|
||||
VAContextID *context_id)
|
||||
{
|
||||
struct request_data *driver_data =
|
||||
(struct request_data *)context->pDriverData;
|
||||
struct request_data *driver_data = context->pDriverData;
|
||||
struct object_config *config_object;
|
||||
struct object_surface *surface_object;
|
||||
struct object_context *context_object = NULL;
|
||||
@@ -195,8 +194,7 @@ complete:
|
||||
|
||||
VAStatus RequestDestroyContext(VADriverContextP context, VAContextID context_id)
|
||||
{
|
||||
struct request_data *driver_data =
|
||||
(struct request_data *)context->pDriverData;
|
||||
struct request_data *driver_data = context->pDriverData;
|
||||
struct object_context *context_object;
|
||||
int rc;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user