HID: hid-lg4ff: Explicit casts from void * are not necessary
authorMichal Malý <madcatxster@devoid-pointer.net>
Wed, 8 Apr 2015 20:56:43 +0000 (22:56 +0200)
committerJiri Kosina <jkosina@suse.cz>
Thu, 7 May 2015 14:27:08 +0000 (16:27 +0200)
Explicit casts from void * are not necessary.

Signed-off-by: Michal Malý <madcatxster@devoid-pointer.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-lg4ff.c

index d1d5d45445a65481a00f8bd29c1c0717dbf6a736..5a3b3beb521a1806acc8b5f5d02974d693b23aef 100644 (file)
@@ -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.");