roox has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/dahdi-linux/+/38322?usp=email )


Change subject: xpp: Add braces around empty if statements.
......................................................................

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(-)



  git pull ssh://gerrit.osmocom.org:29418/dahdi-linux refs/changes/22/38322/1

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 https://gerrit.osmocom.org/c/dahdi-linux/+/38322?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: newchange
Gerrit-Project: dahdi-linux
Gerrit-Branch: master
Gerrit-Change-Id: Icc5cc97105aa9894bfe891acc2a84737a4f3241f
Gerrit-Change-Number: 38322
Gerrit-PatchSet: 1
Gerrit-Owner: roox <[email protected]>

Reply via email to