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 <rmeyerriecks@digium.com>
This commit is contained in:
Russ Meyerriecks 2013-03-13 16:44:42 -05:00
parent f09daed735
commit a34b846f61

View File

@ -1092,7 +1092,9 @@ static void dahdi_check_conf(int x)
{ {
unsigned long res; unsigned long res;
unsigned long flags; unsigned long flags;
#ifdef CONFIG_DAHDI_CONFLINK
int i; int i;
#endif
/* return if no valid conf number */ /* return if no valid conf number */
if (x <= 0) if (x <= 0)