diff mbox

[2/4] HID: lg4ff: Remove unnecessary casts of void pointers

Message ID 1347516573.3319.3.camel@phoenix (mailing list archive)
State New, archived
Delegated to: Jiri Kosina
Headers show

Commit Message

axel lin Sept. 13, 2012, 6:09 a.m. UTC
Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
 drivers/hid/hid-lg4ff.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Jiri Kosina Sept. 17, 2012, 11:08 a.m. UTC | #1
On Thu, 13 Sep 2012, Axel Lin wrote:

> Signed-off-by: Axel Lin <axel.lin@gmail.com>
> ---
>  drivers/hid/hid-lg4ff.c |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Applied, thanks.

> 
> diff --git a/drivers/hid/hid-lg4ff.c b/drivers/hid/hid-lg4ff.c
> index f3390ee..da23c6b 100644
> --- a/drivers/hid/hid-lg4ff.c
> +++ b/drivers/hid/hid-lg4ff.c
> @@ -360,7 +360,7 @@ static void lg4ff_led_set_brightness(struct led_classdev *led_cdev,
>  {
>  	struct device *dev = led_cdev->dev->parent;
>  	struct hid_device *hid = container_of(dev, struct hid_device, dev);
> -	struct lg_drv_data *drv_data = (struct lg_drv_data *)hid_get_drvdata(hid);
> +	struct lg_drv_data *drv_data = hid_get_drvdata(hid);
>  	struct lg4ff_device_entry *entry;
>  	int i, state = 0;
>  
> @@ -395,7 +395,7 @@ static enum led_brightness lg4ff_led_get_brightness(struct led_classdev *led_cde
>  {
>  	struct device *dev = led_cdev->dev->parent;
>  	struct hid_device *hid = container_of(dev, struct hid_device, dev);
> -	struct lg_drv_data *drv_data = (struct lg_drv_data *)hid_get_drvdata(hid);
> +	struct lg_drv_data *drv_data = hid_get_drvdata(hid);
>  	struct lg4ff_device_entry *entry;
>  	int i, value = 0;
>  
> -- 
> 1.7.9.5
> 
> 
>
diff mbox

Patch

diff --git a/drivers/hid/hid-lg4ff.c b/drivers/hid/hid-lg4ff.c
index f3390ee..da23c6b 100644
--- a/drivers/hid/hid-lg4ff.c
+++ b/drivers/hid/hid-lg4ff.c
@@ -360,7 +360,7 @@  static void lg4ff_led_set_brightness(struct led_classdev *led_cdev,
 {
 	struct device *dev = led_cdev->dev->parent;
 	struct hid_device *hid = container_of(dev, struct hid_device, dev);
-	struct lg_drv_data *drv_data = (struct lg_drv_data *)hid_get_drvdata(hid);
+	struct lg_drv_data *drv_data = hid_get_drvdata(hid);
 	struct lg4ff_device_entry *entry;
 	int i, state = 0;
 
@@ -395,7 +395,7 @@  static enum led_brightness lg4ff_led_get_brightness(struct led_classdev *led_cde
 {
 	struct device *dev = led_cdev->dev->parent;
 	struct hid_device *hid = container_of(dev, struct hid_device, dev);
-	struct lg_drv_data *drv_data = (struct lg_drv_data *)hid_get_drvdata(hid);
+	struct lg_drv_data *drv_data = hid_get_drvdata(hid);
 	struct lg4ff_device_entry *entry;
 	int i, value = 0;