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

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

i2c: exynos5: remove unnecessary cast of void pointer



Remove unnecessary cast of void pointer, because 'algo_data' of
'struct i2c_adapter' is a void pointer. Casting the 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>
Reviewed-by: default avatarNaveen Krishna Chatradhi <ch.naveen@samsung.com>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent 3917b84d
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -566,7 +566,7 @@ static int exynos5_i2c_xfer_msg(struct exynos5_i2c *i2c,
static int exynos5_i2c_xfer(struct i2c_adapter *adap,
static int exynos5_i2c_xfer(struct i2c_adapter *adap,
			struct i2c_msg *msgs, int num)
			struct i2c_msg *msgs, int num)
{
{
	struct exynos5_i2c *i2c = (struct exynos5_i2c *)adap->algo_data;
	struct exynos5_i2c *i2c = adap->algo_data;
	int i = 0, ret = 0, stop = 0;
	int i = 0, ret = 0, stop = 0;


	if (i2c->suspended) {
	if (i2c->suspended) {