]> git.openfabrics.org - ~adrianc/mstflint.git/commitdiff
r1563: fix endian-ness. but how did it work on sparc earlier?
authorMichael S. Tsirkin <mst@mellanox.co.il>
Tue, 18 Jan 2005 19:27:02 +0000 (19:27 +0000)
committerMichael S. Tsirkin <mst@mellanox.co.il>
Tue, 18 Jan 2005 19:27:02 +0000 (19:27 +0000)
flint.cpp

index b09858571d5916d62f5d721e8a515411c677b934..f0b55cd148414facd3f95c966427851ec7b05d08 100644 (file)
--- a/flint.cpp
+++ b/flint.cpp
@@ -610,8 +610,6 @@ private:
     u_int16_t extract_word   ( const u_int8_t* pb, int data_width)  {
        assert (data_width == 1 || data_width == 2);
        u_int16_t ret = *pb | ((*(pb + data_width)) << 8);
-       // !!! CHECK ENDIANES !!!
-        ret = __le16_to_cpu(ret);
        return ret;
     }