HID: sensor: Use the correct type instead of a void pointer
diff mbox

Message ID 20171026121921.kmyk42wo32juv6qj@mwanda
State New
Headers show

Commit Message

Dan Carpenter Oct. 26, 2017, 12:19 p.m. UTC
It's cleaner to declare this with the correct type instead of using a
void pointer.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>

--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch
diff mbox

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) *