You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ag...@apache.org on 2021/01/13 10:05:10 UTC

[incubator-nuttx] branch master updated: esp32_i2c.c: Remove useless casts

This is an automated email from the ASF dual-hosted git repository.

aguettouche pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new ca0932f  esp32_i2c.c: Remove useless casts
ca0932f is described below

commit ca0932f842499ccfdd06c6ca5bcf85b5df0e1f04
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Wed Jan 13 17:20:23 2021 +0900

    esp32_i2c.c: Remove useless casts
---
 arch/xtensa/src/esp32/esp32_i2c.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/xtensa/src/esp32/esp32_i2c.c b/arch/xtensa/src/esp32/esp32_i2c.c
index 0298dff..37bf52e 100644
--- a/arch/xtensa/src/esp32/esp32_i2c.c
+++ b/arch/xtensa/src/esp32/esp32_i2c.c
@@ -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: