mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-09-21 20:22:13 +08:00
btrfs: keep const when returning value from get_unaligned_le8()
This was reported by 'gcc -Wcast-qual', the get_unaligned_le8() simply returns the argument and there's no reason to drop the cast. Reviewed-by: Boris Burkov <boris@bur.io> Reviewed-by: Anand Jain <anand.jain@oracle.com> Reviewed-by: Naohiro Aota <naohiro.aota@wdc.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
5100c4eb52
commit
840a97bdef
@ -34,7 +34,7 @@ void btrfs_init_map_token(struct btrfs_map_token *token, struct extent_buffer *e
|
||||
|
||||
static inline u8 get_unaligned_le8(const void *p)
|
||||
{
|
||||
return *(u8 *)p;
|
||||
return *(const u8 *)p;
|
||||
}
|
||||
|
||||
static inline void put_unaligned_le8(u8 val, void *p)
|
||||
|
Loading…
Reference in New Issue
Block a user