]> git.alsa-project.org Git - alsa-tools.git/commitdiff
ppc firmware upload fix
authorThomas Charbonnel <thomas@undata.org>
Mon, 25 Apr 2005 10:36:18 +0000 (10:36 +0000)
committerJaroslav Kysela <perex@perex.cz>
Mon, 25 Apr 2005 10:36:18 +0000 (10:36 +0000)
Signed-off-by: Thomas Charbonnel <thomas@undata.org>
hdsploader/hdsploader.c

index c9e8d9b3b3dacd240178376e76a5a8fa6a947ca8..d1855b1630adf856b110f4ea01f33cffd995dd80 100644 (file)
@@ -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;
 }