a65ffb
diff --git a/wiretap/packetlogger.c.old b/wiretap/packetlogger.c
a65ffb
index fcaedc9..83187ad 100644
a65ffb
--- a/wiretap/packetlogger.c.old
a65ffb
+++ b/wiretap/packetlogger.c
a65ffb
@@ -83,21 +83,6 @@ int packetlogger_open(wtap *wth, int *err, gchar **err_info)
a65ffb
 		return 0;
a65ffb
 	}
a65ffb
 
a65ffb
-	/*
a65ffb
-	 * If the upper 16 bits of the length are non-zero and the lower
a65ffb
-	 * 16 bits are zero, assume the file is little-endian.
a65ffb
-	 */
a65ffb
-	if ((pl_hdr.len & 0x0000FFFF) == 0 &&
a65ffb
-	    (pl_hdr.len & 0xFFFF0000) != 0) {
a65ffb
-		/*
a65ffb
-		 * Byte-swap the upper 16 bits (the lower 16 bits are
a65ffb
-		 * zero, so we don't have to look at them).
a65ffb
-		 */
a65ffb
-		pl_hdr.len = ((pl_hdr.len >> 24) & 0xFF) |
a65ffb
-			     (((pl_hdr.len >> 16) & 0xFF) << 8);
a65ffb
-		little_endian = TRUE;
a65ffb
-	}
a65ffb
-
a65ffb
 	/* Verify this file belongs to us */
a65ffb
 	if (!((8 <= pl_hdr.len) && (pl_hdr.len < 65536) &&
a65ffb
 	      (type < 0x04 || type == 0xFB || type == 0xFC || type == 0xFE || type == 0xFF)))