summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2014-03-11 10:22:59 +0900
committerHyungwon Hwang <human.hwang@samsung.com>2014-12-17 16:18:03 +0900
commit1d597a2e4ea0bd4e22f0845bc30eca30585907b3 (patch)
treee4c3765934d61724f7bbbd54096df27bc46f5aff
parent44c27ba027cd182ff4d5a458373e2108a69c5d2f (diff)
downloadlinux-3.10-1d597a2e4ea0bd4e22f0845bc30eca30585907b3.tar.gz
linux-3.10-1d597a2e4ea0bd4e22f0845bc30eca30585907b3.tar.bz2
linux-3.10-1d597a2e4ea0bd4e22f0845bc30eca30585907b3.zip
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: Jingoo Han <jg1.han@samsung.com> Reviewed-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
-rw-r--r--drivers/i2c/busses/i2c-exynos5.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-exynos5.c b/drivers/i2c/busses/i2c-exynos5.c
index 87a8e86a8d7..29f4b6615b3 100644
--- a/drivers/i2c/busses/i2c-exynos5.c
+++ b/drivers/i2c/busses/i2c-exynos5.c
@@ -567,7 +567,7 @@ static int exynos5_i2c_xfer_msg(struct exynos5_i2c *i2c,
static int exynos5_i2c_xfer(struct i2c_adapter *adap,
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;
if (i2c->suspended) {