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]
This commit is contained in:
Shaun Ruffell 2018-08-09 22:23:57 -05:00
parent 14d8754e34
commit ea2d67414a

View File

@ -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 */