raid5-ppl: silence a misleading warning message
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 21 Mar 2017 20:43:05 +0000 (23:43 +0300)
committerShaohua Li <shli@fb.com>
Fri, 24 Mar 2017 05:38:46 +0000 (22:38 -0700)
The "need_cache_flush" variable is never set to false.  When the
variable is true that means we print a warning message at the end of
the function.

Fixes: 3418d036c81d ("raid5-ppl: Partial Parity Log write logging implementation")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/raid5-ppl.c

index 27bad3e2d7ce5a804934e655674e9cb032fd2265..86ea9addb51a4fcf060dc2abbc5eb0fcd15bdc94 100644 (file)
@@ -1070,7 +1070,7 @@ int ppl_init_log(struct r5conf *conf)
        struct mddev *mddev = conf->mddev;
        int ret = 0;
        int i;
-       bool need_cache_flush;
+       bool need_cache_flush = false;
 
        pr_debug("md/raid:%s: enabling distributed Partial Parity Log\n",
                 mdname(conf->mddev));