From: Dan Carpenter Date: Tue, 21 Mar 2017 20:43:05 +0000 (+0300) Subject: raid5-ppl: silence a misleading warning message X-Git-Tag: v4.14-rc1~1017^2^2~51 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0b408baf7f4f3ea94239d021a1f19e60cd8694de;p=platform%2Fkernel%2Flinux-rpi.git raid5-ppl: silence a misleading warning message 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 Reviewed-by: Artur Paszkiewicz Signed-off-by: Shaohua Li --- diff --git a/drivers/md/raid5-ppl.c b/drivers/md/raid5-ppl.c index 27bad3e..86ea9ad 100644 --- a/drivers/md/raid5-ppl.c +++ b/drivers/md/raid5-ppl.c @@ -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));