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]
remotes/origin/HEAD
Shaun Ruffell 6 years ago
parent 14d8754e34
commit ea2d67414a

@ -1341,11 +1341,13 @@ static int FXS_card_ioctl(xpd_t *xpd, int pos, unsigned int cmd,
if (!vmwi_ioctl) { if (!vmwi_ioctl) {
static bool notified; static bool notified;
if (!notified++) if (!notified) {
notified = true;
LINE_NOTICE(xpd, pos, LINE_NOTICE(xpd, pos,
"Got DAHDI_VMWI notification " "Got DAHDI_VMWI notification "
"but vmwi_ioctl parameter is off. " "but vmwi_ioctl parameter is off. "
"Ignoring.\n"); "Ignoring.\n");
}
return 0; return 0;
} }
/* Digital inputs/outputs don't have VM leds */ /* Digital inputs/outputs don't have VM leds */

Loading…
Cancel
Save