This is an automated email from Gerrit.

Andreas Fritiofson ([email protected]) just uploaded a new patch set 
to Gerrit, which you can find at http://openocd.zylin.com/1766

-- gerrit

commit dc4a8f78b4474950aa3b4b2f8e59072c807acb04
Author: Andreas Fritiofson <[email protected]>
Date:   Sat Sep 28 21:13:05 2013 +0200

    nand/mx*: Remove unused host endianness flag
    
    Probably shouldn't depend on that anyway.
    
    Change-Id: Ic27ead4cb82cff1ab187696439da4b93941e09d8
    Signed-off-by: Andreas Fritiofson <[email protected]>

diff --git a/src/flash/nand/mx3.c b/src/flash/nand/mx3.c
index 4e53fe8..51fa680 100644
--- a/src/flash/nand/mx3.c
+++ b/src/flash/nand/mx3.c
@@ -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;
 }
 
diff --git a/src/flash/nand/mx3.h b/src/flash/nand/mx3.h
index 919453a..60ec293 100644
--- a/src/flash/nand/mx3.h
+++ b/src/flash/nand/mx3.h
@@ -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;
diff --git a/src/flash/nand/mxc.c b/src/flash/nand/mxc.c
index fb66b6d..b91460e 100644
--- a/src/flash/nand/mxc.c
+++ b/src/flash/nand/mxc.c
@@ -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;
 }
 
diff --git a/src/flash/nand/mxc.h b/src/flash/nand/mxc.h
index e95713e..866e0e3 100644
--- a/src/flash/nand/mxc.h
+++ b/src/flash/nand/mxc.h
@@ -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;

-- 

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to