From 0f31d9336129f6d5297cf325bf3afd55e265aca1 Mon Sep 17 00:00:00 2001 From: Thomas Charbonnel Date: Mon, 25 Apr 2005 10:45:27 +0000 Subject: [PATCH] ppc firmware upload fix Signed-off-by: Thomas Charbonnel --- hdsploader/tobin.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/hdsploader/tobin.c b/hdsploader/tobin.c index 4232f65..2d76220 100644 --- a/hdsploader/tobin.c +++ b/hdsploader/tobin.c @@ -14,16 +14,6 @@ int write_bin_file(u_int32_t *array, const char *filename) if ((out = fopen(filename, "w+")) == NULL) return -1; -#if __BYTE_ORDER == __BIG_ENDIAN - { - unsigned int idx; - for (idx = 0; idx < 24413; idx++) - array[idx] = ((array[idx] & 0x000000ff) << 16) | - ((array[idx] & 0x0000ff00) << 8) | - ((array[idx] & 0x00ff0000) >> 8) | - ((array[idx] & 0xff000000) >> 16); - } -#endif if (fwrite(array, 4, 24413, out) != 24413) { fclose(out); return -1; -- 2.47.1