diff options
author | David Sterba <dsterba@suse.com> | 2020-09-15 14:18:23 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2020-12-08 15:53:52 +0100 |
commit | cc7c77146e53ecfbdce695a860e8368c849ffd4f (patch) | |
tree | 860171e3713f0fc54deac8f3ec7e170a3486c364 /fs/btrfs/print-tree.c | |
parent | btrfs: add set/get accessors for root_item::drop_level (diff) | |
download | linux-cc7c77146e53ecfbdce695a860e8368c849ffd4f.tar.xz linux-cc7c77146e53ecfbdce695a860e8368c849ffd4f.zip |
btrfs: remove unnecessary casts in printk
Long time ago the explicit casts were necessary for u64 but we don't
need it. Remove casts where the type matches, leaving only cases that
cast sector_t or loff_t.
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/print-tree.c')
-rw-r--r-- | fs/btrfs/print-tree.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/print-tree.c b/fs/btrfs/print-tree.c index 48b57dd57436..8db99117531d 100644 --- a/fs/btrfs/print-tree.c +++ b/fs/btrfs/print-tree.c @@ -177,8 +177,7 @@ static void print_uuid_item(struct extent_buffer *l, unsigned long offset, __le64 subvol_id; read_extent_buffer(l, &subvol_id, offset, sizeof(subvol_id)); - pr_info("\t\tsubvol_id %llu\n", - (unsigned long long)le64_to_cpu(subvol_id)); + pr_info("\t\tsubvol_id %llu\n", le64_to_cpu(subvol_id)); item_size -= sizeof(u64); offset += sizeof(u64); } |