From a34b846f613d4be94cc764ee14b470a450bf65ae Mon Sep 17 00:00:00 2001 From: Russ Meyerriecks Date: Wed, 13 Mar 2013 16:44:42 -0500 Subject: [PATCH] dahdi: Fix unused variable compile warning An unset conditional compile flag was triggering the unused variable compile warning. Added the condition around the variable define. Signed-off-by: Russ Meyerriecks --- drivers/dahdi/dahdi-base.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/dahdi/dahdi-base.c b/drivers/dahdi/dahdi-base.c index 779d135..f73fd01 100644 --- a/drivers/dahdi/dahdi-base.c +++ b/drivers/dahdi/dahdi-base.c @@ -1092,7 +1092,9 @@ static void dahdi_check_conf(int x) { unsigned long res; unsigned long flags; +#ifdef CONFIG_DAHDI_CONFLINK int i; +#endif /* return if no valid conf number */ if (x <= 0)