backport: simplify #ifdefs in pci-aspm.h
authorJohannes Berg <johannes.berg@intel.com>
Tue, 27 Aug 2013 19:01:00 +0000 (21:01 +0200)
committerLuis R. Rodriguez <mcgrof@do-not-panic.com>
Tue, 27 Aug 2013 21:46:19 +0000 (14:46 -0700)
Just use #else instead of two conditionals.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
backport/backport-include/linux/pci-aspm.h

index 367112ef3cc62f95010b59dc7833b2f86cc3fb17..d0726776fb1f8502e2c547bce5b6da900b571bd5 100644 (file)
@@ -1,10 +1,8 @@
 #include <linux/version.h>
 
-#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,25))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26))
 #include_next <linux/pci-aspm.h>
-#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