Hello Mr. Han,

On 11 March 2014 10:22, Jingoo Han <[email protected]> wrote:
> 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 <[email protected]>
Reviewed-by: Naveen Krishna Chatradhi <[email protected]>

> ---
>  drivers/i2c/busses/i2c-exynos5.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/i2c/busses/i2c-exynos5.c 
> b/drivers/i2c/busses/i2c-exynos5.c
> index 60601ef..00af0a0 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,
>  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) {
> --
> 1.7.10.4
Thanks for the patch.
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
> the body of a message to [email protected]
> More majordomo info at  http://vger.kernel.org/majordomo-info.html



-- 
Shine bright,
(: Nav :)
--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to