[PATCH] check_data_endianess left in half-done state
authorJens Axboe <axboe@suse.de>
Tue, 14 Feb 2006 09:20:22 +0000 (10:20 +0100)
committerJens Axboe <axboe@suse.de>
Tue, 14 Feb 2006 09:20:22 +0000 (10:20 +0100)
blktrace.h

index ca7c25ff8014541bfbe1b0db4559b90854153360..604704896710d5b0ccdc67a5497cccf799ce7f9d 100644 (file)
@@ -112,16 +112,14 @@ static inline void trace_to_cpu(struct blk_io_trace *t)
 /*
  * check whether data is native or not
  */
-static inline int check_data_endianness(struct blk_io_trace *bit)
+static inline int check_data_endianness(u32 magic)
 {
-       u32 magic;
-
-       if ((bit->magic & 0xffffff00) == BLK_IO_TRACE_MAGIC) {
+       if ((magic & 0xffffff00) == BLK_IO_TRACE_MAGIC) {
                data_is_native = 1;
                return 0;
        }
 
-       magic = __bswap_32(bit->magic);
+       magic = __bswap_32(magic);
        if ((magic & 0xffffff00) == BLK_IO_TRACE_MAGIC) {
                data_is_native = 0;
                return 0;