From b9aeaa7676bf67d06172c7db40b62d1cfc702933 Mon Sep 17 00:00:00 2001 From: Johannes Berg Date: Tue, 27 Aug 2013 21:01:00 +0200 Subject: [PATCH] backport: simplify #ifdefs in pci-aspm.h Just use #else instead of two conditionals. Signed-off-by: Johannes Berg Signed-off-by: Luis R. Rodriguez --- backport/backport-include/linux/pci-aspm.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/backport/backport-include/linux/pci-aspm.h b/backport/backport-include/linux/pci-aspm.h index 367112ef3cc6..d0726776fb1f 100644 --- a/backport/backport-include/linux/pci-aspm.h +++ b/backport/backport-include/linux/pci-aspm.h @@ -1,10 +1,8 @@ #include -#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,25)) +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26)) #include_next -#endif /* (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,25)) */ - -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26) +#else #define PCIE_LINK_STATE_L0S 1 #define PCIE_LINK_STATE_L1 2 #define PCIE_LINK_STATE_CLKPM 4 -- 2.30.2