esp32_i2c.c: Remove useless casts

This commit is contained in:
YAMAMOTO Takashi 2021-01-13 17:20:23 +09:00 committed by Abdelatif Guettouche
parent e49bae1300
commit ca0932f842

View File

@ -858,12 +858,12 @@ FAR struct i2c_master_s *esp32_i2cbus_initialize(int port)
{
#ifdef CONFIG_ESP32_I2C0
case 0:
priv = (struct esp32_i2c_priv_s *)&esp32_i2c0_priv;
priv = &esp32_i2c0_priv;
break;
#endif
#ifdef CONFIG_ESP32_I2C1
case 1:
priv = (struct esp32_i2c_priv_s *)&esp32_i2c1_priv;
priv = &esp32_i2c1_priv;
break;
#endif
default: