summaryrefslogtreecommitdiff
path: root/src/flash/nand/mxc.c
diff options
context:
space:
mode:
authorAndreas Fritiofson <andreas.fritiofson@gmail.com>2013-09-28 21:13:05 +0200
committerSpencer Oliver <spen@spen-soft.co.uk>2013-10-31 20:43:15 +0000
commit704082443d03cdeba9c89a8f70d1f1017330d903 (patch)
treebc661c7a046fe18471122013261ee4ff44f645b8 /src/flash/nand/mxc.c
parent13f6c889ab9b6e5b1c4f48fca9807fdc1fb83f42 (diff)
nand/mx*: Remove unused host endianness flag
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>
Diffstat (limited to 'src/flash/nand/mxc.c')
-rw-r--r--src/flash/nand/mxc.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/flash/nand/mxc.c b/src/flash/nand/mxc.c
index fb66b6d3..b91460ef 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;
}