]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
btrfs: Remove unused tot_len var from lzo_decompress
authorNikolay Borisov <nborisov@suse.com>
Thu, 15 Mar 2018 12:36:24 +0000 (14:36 +0200)
committerDavid Sterba <dsterba@suse.com>
Fri, 30 Mar 2018 23:26:57 +0000 (01:26 +0200)
Added already unused in a6fa6fae40ec ("btrfs: Add lzo compression
support").

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/lzo.c

index 6c7f18cd3b61221b083e24969df9e479f5c655d3..1c7f7f70caf4926319597e94e803611a280f08fe 100644 (file)
@@ -382,14 +382,12 @@ static int lzo_decompress(struct list_head *ws, unsigned char *data_in,
        struct workspace *workspace = list_entry(ws, struct workspace, list);
        size_t in_len;
        size_t out_len;
-       size_t tot_len;
        int ret = 0;
        char *kaddr;
        unsigned long bytes;
 
        BUG_ON(srclen < LZO_LEN);
 
-       tot_len = read_compress_length(data_in);
        data_in += LZO_LEN;
 
        in_len = read_compress_length(data_in);