mirror of
https://github.com/apache/nuttx.git
synced 2026-08-09 06:25:09 +00:00
esp32_i2c.c: Remove useless casts
This commit is contained in:
parent
e49bae1300
commit
ca0932f842
1 changed files with 2 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue