From ea2d67414a2a543a113eebdbbb541ce648b90b74 Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Thu, 9 Aug 2018 22:23:57 -0500 Subject: [PATCH] xpp: fxs: Do not increment boolean. This quiets the following warning from gcc 7.3.0: drivers/dahdi/xpp/card_fxs.c:1344:17: warning: increment of a boolean expression [-Wbool-operation] --- drivers/dahdi/xpp/card_fxs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/dahdi/xpp/card_fxs.c b/drivers/dahdi/xpp/card_fxs.c index 03fcc3a..ab5f5a8 100644 --- a/drivers/dahdi/xpp/card_fxs.c +++ b/drivers/dahdi/xpp/card_fxs.c @@ -1341,11 +1341,13 @@ static int FXS_card_ioctl(xpd_t *xpd, int pos, unsigned int cmd, if (!vmwi_ioctl) { static bool notified; - if (!notified++) + if (!notified) { + notified = true; LINE_NOTICE(xpd, pos, "Got DAHDI_VMWI notification " "but vmwi_ioctl parameter is off. " "Ignoring.\n"); + } return 0; } /* Digital inputs/outputs don't have VM leds */