From: Thomas Charbonnel Date: Mon, 25 Apr 2005 10:36:18 +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=a6a8030c6f557dad533853b450e1b1db65179694;p=alsa-tools.git ppc firmware upload fix Signed-off-by: Thomas Charbonnel --- diff --git a/hdsploader/hdsploader.c b/hdsploader/hdsploader.c index c9e8d9b..d1855b1 100644 --- a/hdsploader/hdsploader.c +++ b/hdsploader/hdsploader.c @@ -40,16 +40,7 @@ int read_bin_file(u_int32_t *array, const char *filename) return -1; } fclose(out); -#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 + return 0; }