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
+4 -8
View File
@@ -41,8 +41,7 @@ VAStatus RequestCreateConfig(VADriverContextP context, VAProfile profile,
VAConfigAttrib *attributes, int attributes_count,
VAConfigID *config_id)
{
struct request_data *driver_data =
(struct request_data *)context->pDriverData;
struct request_data *driver_data = context->pDriverData;
struct object_config *config_object;
VAConfigID id;
int i, index;
@@ -91,8 +90,7 @@ VAStatus RequestCreateConfig(VADriverContextP context, VAProfile profile,
VAStatus RequestDestroyConfig(VADriverContextP context, VAConfigID config_id)
{
struct request_data *driver_data =
(struct request_data *)context->pDriverData;
struct request_data *driver_data = context->pDriverData;
struct object_config *config_object;
config_object = CONFIG(driver_data, config_id);
@@ -108,8 +106,7 @@ VAStatus RequestDestroyConfig(VADriverContextP context, VAConfigID config_id)
VAStatus RequestQueryConfigProfiles(VADriverContextP context,
VAProfile *profiles, int *profiles_count)
{
struct request_data *driver_data =
(struct request_data *)context->pDriverData;
struct request_data *driver_data = context->pDriverData;
unsigned int index = 0;
bool found;
@@ -168,8 +165,7 @@ VAStatus RequestQueryConfigAttributes(VADriverContextP context,
VAConfigAttrib *attributes,
int *attributes_count)
{
struct request_data *driver_data =
(struct request_data *)context->pDriverData;
struct request_data *driver_data = context->pDriverData;
struct object_config *config_object;
int i;