aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-09-09 01:31:29 -0400
committerWolfram Sang <wsa@the-dreams.de>2013-09-30 00:02:33 -0400
commitab0dc7a81df2595a18b328d2c7031b00bd7efb1e (patch)
tree33d0b69e34d707b1a32a3d12bea67f1b95433076
parent991e7ecf1f1a2e2fa76387066342a5a6c4a28a76 (diff)
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 <jg1.han@samsung.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
-rw-r--r--drivers/i2c/busses/i2c-xiic.c2
1 files changed, 1 insertions, 1 deletions
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)
702 if (irq < 0) 702 if (irq < 0)
703 goto resource_missing; 703 goto resource_missing;
704 704
705 pdata = (struct xiic_i2c_platform_data *)dev_get_platdata(&pdev->dev); 705 pdata = dev_get_platdata(&pdev->dev);
706 706
707 i2c = kzalloc(sizeof(*i2c), GFP_KERNEL); 707 i2c = kzalloc(sizeof(*i2c), GFP_KERNEL);
708 if (!i2c) 708 if (!i2c)