mirror of
https://github.com/apache/nuttx.git
synced 2026-05-19 11:53:25 +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
|
||||
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:
|
||||
|
||||
Reference in New Issue
Block a user