Whamcloud - gitweb
libext2fs: Fix big-endian bug in tst_csum.c
authorTheodore Ts'o <tytso@mit.edu>
Tue, 1 Apr 2008 21:03:00 +0000 (17:03 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 1 Apr 2008 21:03:00 +0000 (17:03 -0400)
It's not necessary to byte-swap the checksum.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/ext2fs/tst_csum.c

index efeeb0a..eb7377d 100644 (file)
@@ -80,9 +80,6 @@ main(int argc, char **argv)
        csum1 = ext2fs_group_desc_csum(fs, 0);
        print_csum("csum0000", fs, 0);
 
-#ifdef WORDS_BIGENDIAN
-       csum_known = ext2fs_swab16(known);
-#endif
        if (csum1 != csum_known) {
                printf("checksum for group 0 should be %04x\n", csum_known);
                exit(1);