From: Juergen Gross Date: Wed, 5 Apr 2017 13:56:07 +0000 (+0200) Subject: xenstore: dont increment bool variable X-Git-Tag: archive/raspbian/4.11.1-1+rpi1~1^2~66^2~2356 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2cb1f77c0494538ede7e44896db70d9cdddbcd66;p=xen.git xenstore: dont increment bool variable Instead of incrementing a bool variable just set it to true. Signed-off-by: Juergen Gross Acked-by: Ian Jackson --- diff --git a/tools/xenstore/xenstored_domain.c b/tools/xenstore/xenstored_domain.c index 4edd14eb4f..f41cf46ced 100644 --- a/tools/xenstore/xenstored_domain.c +++ b/tools/xenstore/xenstored_domain.c @@ -934,7 +934,8 @@ void wrl_apply_debit_actual(struct domain *domain) (long)domain->wrl_credit, (long)wrl_reserve); if (domain->wrl_credit < 0) { - if (!domain->wrl_delay_logged++) { + if (!domain->wrl_delay_logged) { + domain->wrl_delay_logged = true; WRL_LOG(now, "domain %ld is affected", (long)domain->domid); } else if (!wrl_log_last_warning) {