mirror of
https://github.com/apache/nuttx.git
synced 2026-10-13 09:10:17 +00:00
remove unnecessary irq operation
This commit is contained in:
parent
286d8875d5
commit
ce43f21b33
1 changed files with 0 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue