diff options
| -rw-r--r-- | drivers/staging/zcache/zcache-main.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/staging/zcache/zcache-main.c b/drivers/staging/zcache/zcache-main.c index dcceed29d31a..81972fa47beb 100644 --- a/drivers/staging/zcache/zcache-main.c +++ b/drivers/staging/zcache/zcache-main.c | |||
| @@ -1811,10 +1811,12 @@ static int zcache_comp_init(void) | |||
| 1811 | #else | 1811 | #else |
| 1812 | if (*zcache_comp_name != '\0') { | 1812 | if (*zcache_comp_name != '\0') { |
| 1813 | ret = crypto_has_comp(zcache_comp_name, 0, 0); | 1813 | ret = crypto_has_comp(zcache_comp_name, 0, 0); |
| 1814 | if (!ret) | 1814 | if (!ret) { |
| 1815 | pr_info("zcache: %s not supported\n", | 1815 | pr_info("zcache: %s not supported\n", |
| 1816 | zcache_comp_name); | 1816 | zcache_comp_name); |
| 1817 | goto out; | 1817 | ret = 1; |
| 1818 | goto out; | ||
| 1819 | } | ||
| 1818 | } | 1820 | } |
| 1819 | if (!ret) | 1821 | if (!ret) |
| 1820 | strcpy(zcache_comp_name, "lzo"); | 1822 | strcpy(zcache_comp_name, "lzo"); |
