i2c: xiic: Remove casting the return value which is a void pointer
authorJingoo Han <jg1.han@samsung.com>
Mon, 9 Sep 2013 05:31:29 +0000 (14:31 +0900)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 30 Sep 2013 04:02:33 +0000 (06:02 +0200)
Casting the return value which is a void pointer is redundant.
The conversion from void pointer to any other pointer type is
guaranteed by the C programming language.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-xiic.c

index 4c8b368d463b7c77517fb3ed314e4234bd6dafbc..6e7b09c1804e324ead3503e06c5f042cddf1f9b3 100644 (file)
@@ -702,7 +702,7 @@ static int xiic_i2c_probe(struct platform_device *pdev)
        if (irq < 0)
                goto resource_missing;
 
-       pdata = (struct xiic_i2c_platform_data *)dev_get_platdata(&pdev->dev);
+       pdata = dev_get_platdata(&pdev->dev);
 
        i2c = kzalloc(sizeof(*i2c), GFP_KERNEL);
        if (!i2c)
This page took 0.025411 seconds and 5 git commands to generate.