From 00a4ff1bd81d8f3774792539cb50712231d72bfe Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Tue, 13 Mar 2012 20:09:12 +0000 Subject: Remove support for kernels < 2.6.18 This patch removes support for kernel versions < 2.6.18, as those are not actively supported in any major Linux distribution (except RHEL4, which is in the "extended" support level of the product life cycle). This removes much of the more #ifdef-rich parts of the code. Signed-off-by: Oron Peled Acked-by: Acked-by: Shaun Ruffell Acked-by: Tzafrir Cohen git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@10472 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/dahdi_dynamic.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'drivers/dahdi/dahdi_dynamic.c') diff --git a/drivers/dahdi/dahdi_dynamic.c b/drivers/dahdi/dahdi_dynamic.c index cbcdce7..d896580 100644 --- a/drivers/dahdi/dahdi_dynamic.c +++ b/drivers/dahdi/dahdi_dynamic.c @@ -406,12 +406,7 @@ static void dahdi_dynamic_release(struct kref *kref) static inline int dynamic_put(struct dahdi_dynamic *d) { -#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 12) - kref_put(&d->kref, dahdi_dynamic_release); - return 1; -#else return kref_put(&d->kref, dahdi_dynamic_release); -#endif } static inline void dynamic_get(struct dahdi_dynamic *d) -- cgit v1.2.3