flash/nor/stm32f1x: fix error message
[fw/openocd] / src / flash / nor / non_cfi.c
index 72f11e55382a6f73b72016659f6e206c333fc53a..a817966c61ff80464e3ecfb4bd38d3e7b9282b43 100644 (file)
@@ -15,9 +15,7 @@
  *   GNU General Public License for more details.                          *
  *                                                                         *
  *   You should have received a copy of the GNU General Public License     *
- *   along with this program; if not, write to the                         *
- *   Free Software Foundation, Inc.,                                       *
- *   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.           *
+ *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
 #ifdef HAVE_CONFIG_H
@@ -485,11 +483,11 @@ void cfi_fixup_non_cfi(struct flash_bank *bank)
                        break;
        }
 
-       /* only fixup jedec flashs found in table */
+       /* only fixup jedec flashes found in table */
        if (!non_cfi->mfr)
                return;
 
-       cfi_info->not_cfi = 1;
+       cfi_info->not_cfi = true;
 
        /* fill in defaults for non-critical data */
        cfi_info->vcc_min = 0x0;
@@ -540,7 +538,6 @@ void cfi_fixup_non_cfi(struct flash_bank *bank)
 
                pri_ext->SiliconRevision = 0x0;
                pri_ext->EraseSuspend = 0x0;
-               pri_ext->EraseSuspend = 0x0;
                pri_ext->BlkProt = 0x0;
                pri_ext->TmpBlkUnprotect = 0x0;
                pri_ext->BlkProtUnprot = 0x0;