From: Michal Malý Date: Wed, 8 Apr 2015 20:56:43 +0000 (+0200) Subject: HID: hid-lg4ff: Explicit casts from void * are not necessary X-Git-Tag: firefly_0821_release~176^2~1610^2~1^3~12 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=371a1d9e1fed7dc4113386b23d92cccc3cfc6d8d;p=firefly-linux-kernel-4.4.55.git HID: hid-lg4ff: Explicit casts from void * are not necessary Explicit casts from void * are not necessary. Signed-off-by: Michal Malý Signed-off-by: Jiri Kosina --- diff --git a/drivers/hid/hid-lg4ff.c b/drivers/hid/hid-lg4ff.c index d1d5d45445a6..5a3b3beb521a 100644 --- a/drivers/hid/hid-lg4ff.c +++ b/drivers/hid/hid-lg4ff.c @@ -847,7 +847,7 @@ static void lg4ff_led_set_brightness(struct led_classdev *led_cdev, return; } - entry = (struct lg4ff_device_entry *)drv_data->device_props; + entry = drv_data->device_props; if (!entry) { hid_err(hid, "Device properties not found."); @@ -882,7 +882,7 @@ static enum led_brightness lg4ff_led_get_brightness(struct led_classdev *led_cde return LED_OFF; } - entry = (struct lg4ff_device_entry *)drv_data->device_props; + entry = drv_data->device_props; if (!entry) { hid_err(hid, "Device properties not found.");