Message ID | 20191210071357.5323-3-sebastian.scherbel@fau.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | btrfs: code cleanup | expand |
diff --git a/fs/btrfs/struct-funcs.c b/fs/btrfs/struct-funcs.c index 73f7987143df..4f63e69c5387 100644 --- a/fs/btrfs/struct-funcs.c +++ b/fs/btrfs/struct-funcs.c @@ -9,12 +9,12 @@ static inline u8 get_unaligned_le8(const void *p) { - return *(u8 *)p; + return *(u8 *)p; } static inline void put_unaligned_le8(u8 val, void *p) { - *(u8 *)p = val; + *(u8 *)p = val; } /* @@ -173,6 +173,7 @@ void btrfs_node_key(const struct extent_buffer *eb, struct btrfs_disk_key *disk_key, int nr) { unsigned long ptr = btrfs_node_key_ptr_offset(nr); + read_eb_member(eb, (struct btrfs_key_ptr *)ptr, struct btrfs_key_ptr, key, disk_key); }