summaryrefslogtreecommitdiffstats
path: root/libs/dahdi-linux/patches/013-braces-around-empty-stmts.patch
blob: b4ace215f4e6338ac3ca5e08adf1230ba38914ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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;