i2c: exynos5: remove unnecessary cast of void pointer
authorJingoo Han <jg1.han@samsung.com>
Tue, 11 Mar 2014 01:22:59 +0000 (10:22 +0900)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 13 Mar 2014 21:20:31 +0000 (22:20 +0100)
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>
drivers/i2c/busses/i2c-exynos5.c

index 60601ef0e5858faeb8d7072a871f48c3328c5055..00af0a0a33618ddddcda671151d4fa72ff5546eb 100644 (file)
@@ -566,7 +566,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) {
This page took 0.024466 seconds and 5 git commands to generate.