mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 23:40:19 +08:00
esp32_i2c.c: Remove useless casts
This commit is contained in:
committed by
Abdelatif Guettouche
parent
e49bae1300
commit
ca0932f842
@@ -858,12 +858,12 @@ FAR struct i2c_master_s *esp32_i2cbus_initialize(int port)
|
|||||||
{
|
{
|
||||||
#ifdef CONFIG_ESP32_I2C0
|
#ifdef CONFIG_ESP32_I2C0
|
||||||
case 0:
|
case 0:
|
||||||
priv = (struct esp32_i2c_priv_s *)&esp32_i2c0_priv;
|
priv = &esp32_i2c0_priv;
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_ESP32_I2C1
|
#ifdef CONFIG_ESP32_I2C1
|
||||||
case 1:
|
case 1:
|
||||||
priv = (struct esp32_i2c_priv_s *)&esp32_i2c1_priv;
|
priv = &esp32_i2c1_priv;
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
default:
|
default:
|
||||||
|
|||||||
Reference in New Issue
Block a user