It's cleaner to declare this with the correct type instead of using a void pointer. Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> diff --git a/drivers/hid/hid-sensor-custom.c b/drivers/hid/hid-sensor-custom.c index 0bcf041368c7..4f509f13f347 100644 --- a/drivers/hid/hid-sensor-custom.c +++ b/drivers/hid/hid-sensor-custom.c @@ -485,7 +485,7 @@ static int hid_sensor_custom_add_field(struct hid_sensor_custom *sensor_inst, struct hid_field *field) { struct hid_sensor_custom_field *sensor_field; - void *fields; + struct hid_sensor_custom_field *fields; fields = krealloc(sensor_inst->fields, (sensor_inst->sensor_field_count + 1) * -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html