]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/staging/zcache/zcache-main.c
Merge remote-tracking branch 'ptr-ret/PTR_RET'
[karo-tx-linux.git] / drivers / staging / zcache / zcache-main.c
index 88e7fe7fe1837b2d7aecfdeb96b87492cf403319..f8bbce00fb1f227e0c53dade7358eaecc7e4e7ea 100644 (file)
@@ -1811,10 +1811,12 @@ static int zcache_comp_init(void)
 #else
        if (*zcache_comp_name != '\0') {
                ret = crypto_has_comp(zcache_comp_name, 0, 0);
-               if (!ret)
+               if (!ret) {
                        pr_info("zcache: %s not supported\n",
                                        zcache_comp_name);
-               goto out;
+                       ret = 1;
+                       goto out;
+               }
        }
        if (!ret)
                strcpy(zcache_comp_name, "lzo");