From: Thomas Charbonnel Date: Mon, 25 Apr 2005 10:45:27 +0000 (+0000) Subject: ppc firmware upload fix X-Git-Tag: v1.0.9rc3~1 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=0f31d9336129f6d5297cf325bf3afd55e265aca1;p=alsa-firmware.git ppc firmware upload fix Signed-off-by: Thomas Charbonnel --- 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;