aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2014-03-10 21:22:59 -0400
committerWolfram Sang <wsa@the-dreams.de>2014-03-13 17:20:31 -0400
commit0ff83d2cad1ad584bd5df639750f90bd6b09055c (patch)
tree11bf76bdd0d82c67c7c4e1ae423908bb7813e0e1 /drivers/i2c
parent3917b84d17ed769cb2dbaa7ab57148f6073134b0 (diff)
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>
Diffstat (limited to 'drivers/i2c')
-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 60601ef0e585..00af0a0a3361 100644
--- a/drivers/i2c/busses/i2c-exynos5.c
+++ b/drivers/i2c/busses/i2c-exynos5.c
@@ -566,7 +566,7 @@ static int exynos5_i2c_xfer_msg(struct exynos5_i2c *i2c,
566static int exynos5_i2c_xfer(struct i2c_adapter *adap, 566static int exynos5_i2c_xfer(struct i2c_adapter *adap,
567 struct i2c_msg *msgs, int num) 567 struct i2c_msg *msgs, int num)
568{ 568{
569 struct exynos5_i2c *i2c = (struct exynos5_i2c *)adap->algo_data; 569 struct exynos5_i2c *i2c = adap->algo_data;
570 int i = 0, ret = 0, stop = 0; 570 int i = 0, ret = 0, stop = 0;
571 571
572 if (i2c->suspended) { 572 if (i2c->suspended) {