hpsa: logical vs bitwise AND typo
[firefly-linux-kernel-4.4.55.git] / drivers / scsi / hpsa.c
index 6d4412359d2392357602e4a7fd0def79c1e98363..bff95090e52ad5b9a779ea54aa4297a95a07e96a 100644 (file)
@@ -8679,7 +8679,7 @@ static void hpsa_disable_rld_caching(struct ctlr_info *h)
        if ((rc != 0)  || (c->err_info->CommandStatus != 0))
                goto errout;
 
-       if (*options && HPSA_DIAG_OPTS_DISABLE_RLD_CACHING)
+       if (*options & HPSA_DIAG_OPTS_DISABLE_RLD_CACHING)
                goto out;
 
 errout: