]> granicus.if.org Git - esp-idf/commitdiff
components/spi_flash: remove stray level of indentation
authorIvan Grokhotkov <ivan@espressif.com>
Mon, 26 Sep 2016 04:47:17 +0000 (12:47 +0800)
committerIvan Grokhotkov <ivan@espressif.com>
Mon, 26 Sep 2016 04:47:17 +0000 (12:47 +0800)
components/spi_flash/esp_spi_flash.c

index a9da316abf182765a72a19e50e97fd68c2337034..d702f3b81541b43dc0ad361f0ca087dc7204488f 100644 (file)
@@ -246,11 +246,8 @@ esp_err_t IRAM_ATTR spi_flash_read(uint32_t src_addr, uint32_t *dest, uint32_t s
 {
     COUNTER_START();
     spi_flash_disable_interrupts_caches_and_other_cpu();
-    SpiFlashOpResult rc;
-    {
-        rc = SPIRead(src_addr, dest, (int32_t) size);
-        COUNTER_ADD_BYTES(read, size);
-    }
+    SpiFlashOpResult rc = SPIRead(src_addr, dest, (int32_t) size);
+    COUNTER_ADD_BYTES(read, size);
     spi_flash_enable_interrupts_caches_and_other_cpu();
     COUNTER_STOP(read);
     return spi_flash_translate_rc(rc);