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

[incubator-nuttx] branch master updated: esp32 & esp32c3: Partition supports BIO cmd

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

xiaoxiang 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 fed7808  esp32 & esp32c3: Partition supports BIO cmd
fed7808 is described below

commit fed7808d806741a61523684df31a5be918dde099
Author: Dong Heng <do...@espressif.com>
AuthorDate: Thu Jul 15 20:12:37 2021 +0800

    esp32 & esp32c3: Partition supports BIO cmd
---
 arch/risc-v/src/esp32c3/esp32c3_partition.c | 6 ------
 arch/xtensa/src/esp32/esp32_partition.c     | 6 ------
 2 files changed, 12 deletions(-)

diff --git a/arch/risc-v/src/esp32c3/esp32c3_partition.c b/arch/risc-v/src/esp32c3/esp32c3_partition.c
index 7850f67..0e0e400 100644
--- a/arch/risc-v/src/esp32c3/esp32c3_partition.c
+++ b/arch/risc-v/src/esp32c3/esp32c3_partition.c
@@ -497,12 +497,6 @@ static int esp32c3_part_ioctl(struct mtd_dev_s *dev, int cmd,
 
   finfo("INFO: cmd=%d(0x%x) arg=0x%" PRIx32 "\n", cmd, cmd, arg);
 
-  if (!_MTDIOCVALID(cmd))
-    {
-      ferr("ERROR: cmd=%d(0x%x) is error\n", cmd, cmd);
-      return -EINVAL;
-    }
-
   switch (_IOC_NR(cmd))
     {
       case OTA_IMG_GET_BOOT:
diff --git a/arch/xtensa/src/esp32/esp32_partition.c b/arch/xtensa/src/esp32/esp32_partition.c
index ab47646..a1f5a8d 100644
--- a/arch/xtensa/src/esp32/esp32_partition.c
+++ b/arch/xtensa/src/esp32/esp32_partition.c
@@ -495,12 +495,6 @@ static int esp32_part_ioctl(struct mtd_dev_s *dev, int cmd,
 
   finfo("INFO: cmd=%d(%x) arg=%x\n", cmd, cmd, arg);
 
-  if (!_MTDIOCVALID(cmd))
-    {
-      finfo("INFO: cmd=%d(%x) is error\n", cmd, cmd);
-      return -ENOTTY;
-    }
-
   switch (_IOC_NR(cmd))
     {
       case OTA_IMG_GET_BOOT: