]> git.sur5r.net Git - openocd/commitdiff
nand/mx*: Remove unused host endianness flag
authorAndreas Fritiofson <andreas.fritiofson@gmail.com>
Sat, 28 Sep 2013 19:13:05 +0000 (21:13 +0200)
committerSpencer Oliver <spen@spen-soft.co.uk>
Thu, 31 Oct 2013 20:43:15 +0000 (20:43 +0000)
Probably shouldn't depend on that anyway.

Change-Id: Ic27ead4cb82cff1ab187696439da4b93941e09d8
Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Reviewed-on: http://openocd.zylin.com/1766
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
src/flash/nand/mx3.c
src/flash/nand/mx3.h
src/flash/nand/mxc.c
src/flash/nand/mxc.h

index 4e53fe877b3001739ee24ae78c4f4f0c09ba4dbc..51fa680fd3bb7fa770188bc6786c8af53cb1b6f3 100644 (file)
@@ -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;
 }
 
index 919453a5e28e268a1135f9163948ff75fdb40f89..60ec2938cdf720af4148a7fe4ad5232698bc0767 100644 (file)
@@ -96,7 +96,6 @@ enum mx_nf_finalize_action {
 };
 
 struct mx3_nf_flags {
-       unsigned host_little_endian:1;
        unsigned target_little_endian:1;
        unsigned nand_readonly:1;
        unsigned one_kb_sram:1;
index fb66b6d385114937f3334687e411e4e8b1172368..b91460ef236b208a06269fb752b33b3da19d4ab1 100644 (file)
@@ -89,7 +89,6 @@ NAND_DEVICE_COMMAND_HANDLER(mxc_nand_device_command)
 {
        struct mxc_nf_controller *mxc_nf_info;
        int hwecc_needed;
-       int x;
 
        mxc_nf_info = malloc(sizeof(struct mxc_nf_controller));
        if (mxc_nf_info == NULL) {
@@ -147,14 +146,6 @@ NAND_DEVICE_COMMAND_HANDLER(mxc_nand_device_command)
                mxc_nf_info->flags.biswap_enabled = 1;
        }
 
-       /*
-        * testing host endianness
-        */
-       x = 1;
-       if (*(char *) &x == 1)
-               mxc_nf_info->flags.host_little_endian = 1;
-       else
-               mxc_nf_info->flags.host_little_endian = 0;
        return ERROR_OK;
 }
 
index e95713e9c2a6700ace71a538453a3ab269578bd2..866e0e32328e4dd3d9fabebe6bc9927c72add6ac 100644 (file)
@@ -149,7 +149,6 @@ enum mxc_nf_finalize_action {
 };
 
 struct mxc_nf_flags {
-       unsigned host_little_endian:1;
        unsigned target_little_endian:1;
        unsigned nand_readonly:1;
        unsigned one_kb_sram:1;