summaryrefslogtreecommitdiff
path: root/convert/common.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2017-02-09 17:39:44 +0100
committerDavid Sterba <dsterba@suse.com>2017-03-08 13:00:47 +0100
commit6e1510e0fee5cca94d3a5fc14fcfe69218968d7a (patch)
tree59213b4e780bc179366fb30b93fe80943e887331 /convert/common.c
parent175b972c6ba7dd2f40ee799c93f49cf893b63bc2 (diff)
btrfs-progs: remove unused argument from btrfs_csum_data
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'convert/common.c')
-rw-r--r--convert/common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/convert/common.c b/convert/common.c
index d87d75ee..40bf32cf 100644
--- a/convert/common.c
+++ b/convert/common.c
@@ -64,7 +64,7 @@ static inline int write_temp_super(int fd, struct btrfs_super_block *sb,
u32 crc = ~(u32)0;
int ret;
- crc = btrfs_csum_data(NULL, (char *)sb + BTRFS_CSUM_SIZE, crc,
+ crc = btrfs_csum_data((char *)sb + BTRFS_CSUM_SIZE, crc,
BTRFS_SUPER_INFO_SIZE - BTRFS_CSUM_SIZE);
btrfs_csum_final(crc, &sb->csum[0]);
ret = pwrite(fd, sb, BTRFS_SUPER_INFO_SIZE, sb_bytenr);