laforge submitted this change.
xpp: Add braces around empty if statements.
Avoid compilation failure on modern kernels by adding braces
around empty if body.
Resolves: #65
Change-Id: Icc5cc97105aa9894bfe891acc2a84737a4f3241f
---
M drivers/dahdi/xpp/card_fxs.c
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/dahdi/xpp/card_fxs.c b/drivers/dahdi/xpp/card_fxs.c
index 8b96f83..7080fbc 100644
--- a/drivers/dahdi/xpp/card_fxs.c
+++ b/drivers/dahdi/xpp/card_fxs.c
@@ -1169,10 +1169,12 @@
"%s: VMWI(hvdc) is not implemented yet. Ignored.\n",
__func__);
}
- if (VMWI_TYPE(priv, pos, HVAC))
+ if (VMWI_TYPE(priv, pos, HVAC)) {
; /* VMWI_NEON */
- if (priv->vmwisetting[pos].vmwi_type == 0)
+ }
+ if (priv->vmwisetting[pos].vmwi_type == 0) {
; /* Disable VMWI */
+ }
priv->vmwisetting[pos] = vmwisetting;
set_vm_led_mode(xpd->xbus, xpd, pos, PHONEDEV(xpd).msg_waiting[pos]);
return 0;
To view, visit change 38322. To unsubscribe, or for help writing mail filters, visit settings.