flash/nor/mdr.c: fix uninitialised variable warning
[fw/openocd] / src / flash / nand / mx3.c
index 23e6033d08dd2bb5d5c43d559e1a4f5df811e641..51fa680fd3bb7fa770188bc6786c8af53cb1b6f3 100644 (file)
@@ -17,7 +17,7 @@
  *   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.,                                       *
- *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
+ *   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.           *
  ***************************************************************************/
 
 /*
@@ -91,16 +91,7 @@ NAND_DEVICE_COMMAND_HANDLER(imx31_nand_device_command)
        mx3_nf_info->fin = MX3_NF_FIN_NONE;
        mx3_nf_info->flags.target_little_endian =
                        (nand->target->endianness == TARGET_LITTLE_ENDIAN);
-       /*
-       * testing host endianness
-       */
-       {
-               int x = 1;
-               if (*(char *) &x == 1)
-                       mx3_nf_info->flags.host_little_endian = 1;
-               else
-                       mx3_nf_info->flags.host_little_endian = 0;
-       }
+
        return ERROR_OK;
 }