You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by gn...@apache.org on 2020/02/20 14:34:46 UTC

[incubator-nuttx] 02/02: remove unnecessary irq operation

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

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

commit ce43f21b33000b37a9fca59415f9f41499e2de03
Author: klmchp <ke...@gmail.com>
AuthorDate: Thu Feb 20 22:20:13 2020 +0800

    remove unnecessary irq operation
---
 arch/arm/src/samv7/sam_eefc.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/arch/arm/src/samv7/sam_eefc.c b/arch/arm/src/samv7/sam_eefc.c
index 84e043f..566234a 100755
--- a/arch/arm/src/samv7/sam_eefc.c
+++ b/arch/arm/src/samv7/sam_eefc.c
@@ -304,7 +304,6 @@ int sam_eefc_unlock(size_t page, size_t npages)
   size_t start_page;
   size_t end_page;
   size_t lockpage;
-  irqstate_t flags;
   int ret;
 
   /* Align the page to the lock region */
@@ -316,9 +315,7 @@ int sam_eefc_unlock(size_t page, size_t npages)
        lockpage < end_page;
        lockpage += SAMV7_LOCK_REGION_SIZE)
     {
-      flags = up_irq_save();
       ret = sam_eefc_command(FCMD_CLB, lockpage);
-      up_irq_restore(flags);
       if (ret < 0)
         {
           return ret;