Skip to content

Commit 6cdf7a1

Browse files
InterLinked1push143smart
authored andcommitted
xpp: Add braces around empty if statements.
Avoid compilation failure on modern kernels by adding braces around empty if body. Resolves: #65
1 parent 5358829 commit 6cdf7a1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

drivers/dahdi/xpp/card_fxs.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,10 +1169,12 @@ static int set_vmwi(xpd_t *xpd, int pos, unsigned long arg)
11691169
"%s: VMWI(hvdc) is not implemented yet. Ignored.\n",
11701170
__func__);
11711171
}
1172-
if (VMWI_TYPE(priv, pos, HVAC))
1172+
if (VMWI_TYPE(priv, pos, HVAC)) {
11731173
; /* VMWI_NEON */
1174-
if (priv->vmwisetting[pos].vmwi_type == 0)
1174+
}
1175+
if (priv->vmwisetting[pos].vmwi_type == 0) {
11751176
; /* Disable VMWI */
1177+
}
11761178
priv->vmwisetting[pos] = vmwisetting;
11771179
set_vm_led_mode(xpd->xbus, xpd, pos, PHONEDEV(xpd).msg_waiting[pos]);
11781180
return 0;

0 commit comments

Comments
 (0)