Skip to content

Commit

Permalink
btrfs: Remove unused tot_len var from lzo_decompress
Browse files Browse the repository at this point in the history
Added already unused in a6fa6fa ("btrfs: Add lzo compression
support").

Signed-off-by: Nikolay Borisov <[email protected]>
Signed-off-by: David Sterba <[email protected]>
  • Loading branch information
lorddoskias authored and kdave committed Mar 30, 2018
1 parent d6e823a commit 4eeb97c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions fs/btrfs/lzo.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4eeb97c

Please sign in to comment.