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:
Maxime Ripard
2018-07-17 16:32:57 +02:00
parent 111f5b209a
commit 92f6546596
7 changed files with 26 additions and 49 deletions
+2 -4
View File
@@ -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;