Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ab0dc7a8 authored by Jingoo Han's avatar Jingoo Han Committed by Wolfram Sang
Browse files

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: default avatarJingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent 991e7ecf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)