diff options
author | David Sterba <dsterba@suse.cz> | 2014-07-29 11:41:08 -0400 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2014-10-01 13:31:33 -0400 |
commit | 143f363618558478fd7b5156c343d21e74194987 (patch) | |
tree | 2596a91116d8eabe0aed91a18ca9b0a2e9d3ce34 /fs | |
parent | aab110abcbbf06b5d52d9974b4a72d3c7cd38537 (diff) |
btrfs: remove unused variable from btrfs_parse_options
Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/super.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index 2375f94fb780..1c6da8e00c1b 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c | |||
@@ -395,7 +395,6 @@ int btrfs_parse_options(struct btrfs_root *root, char *options) | |||
395 | int ret = 0; | 395 | int ret = 0; |
396 | char *compress_type; | 396 | char *compress_type; |
397 | bool compress_force = false; | 397 | bool compress_force = false; |
398 | bool compress = false; | ||
399 | 398 | ||
400 | cache_gen = btrfs_super_cache_generation(root->fs_info->super_copy); | 399 | cache_gen = btrfs_super_cache_generation(root->fs_info->super_copy); |
401 | if (cache_gen) | 400 | if (cache_gen) |
@@ -473,7 +472,6 @@ int btrfs_parse_options(struct btrfs_root *root, char *options) | |||
473 | /* Fallthrough */ | 472 | /* Fallthrough */ |
474 | case Opt_compress: | 473 | case Opt_compress: |
475 | case Opt_compress_type: | 474 | case Opt_compress_type: |
476 | compress = true; | ||
477 | if (token == Opt_compress || | 475 | if (token == Opt_compress || |
478 | token == Opt_compress_force || | 476 | token == Opt_compress_force || |
479 | strcmp(args[0].from, "zlib") == 0) { | 477 | strcmp(args[0].from, "zlib") == 0) { |
@@ -503,7 +501,7 @@ int btrfs_parse_options(struct btrfs_root *root, char *options) | |||
503 | btrfs_set_and_info(root, FORCE_COMPRESS, | 501 | btrfs_set_and_info(root, FORCE_COMPRESS, |
504 | "force %s compression", | 502 | "force %s compression", |
505 | compress_type); | 503 | compress_type); |
506 | } else if (compress) { | 504 | } else { |
507 | if (!btrfs_test_opt(root, COMPRESS)) | 505 | if (!btrfs_test_opt(root, COMPRESS)) |
508 | btrfs_info(root->fs_info, | 506 | btrfs_info(root->fs_info, |
509 | "btrfs: use %s compression", | 507 | "btrfs: use %s compression", |