Files
telephony/libs/dahdi-linux/patches/013-braces-around-empty-stmts.patch
Philip Prindeville c80fd2d66d dahdi-linux: Update version to 3.4.0
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
2025-06-04 11:09:50 +02:00

29 lines
886 B
Diff

commit 6cdf7a14cec7f44c6e2003365f7ee184b5ebb6b4
Author: InterLinked1 <24227567+InterLinked1@users.noreply.github.com>
Date: Mon Sep 23 19:14:44 2024 -0400
xpp: Add braces around empty if statements.
Avoid compilation failure on modern kernels by adding braces
around empty if body.
Resolves: #65
--- a/drivers/dahdi/xpp/card_fxs.c
+++ b/drivers/dahdi/xpp/card_fxs.c
@@ -1169,10 +1169,12 @@ static int set_vmwi(xpd_t *xpd, int pos,
"%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;