From: Jingoo Han Date: Mon, 9 Sep 2013 05:31:29 +0000 (+0900) Subject: i2c: xiic: Remove casting the return value which is a void pointer X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=ab0dc7a81df2595a18b328d2c7031b00bd7efb1e;p=deliverable%2Flinux.git i2c: xiic: Remove casting the return value which is a void pointer 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 Signed-off-by: Wolfram Sang --- diff --git a/drivers/i2c/busses/i2c-xiic.c b/drivers/i2c/busses/i2c-xiic.c index 4c8b368d463b..6e7b09c1804e 100644 --- a/drivers/i2c/busses/i2c-xiic.c +++ b/drivers/i2c/busses/i2c-xiic.c @@ -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)