net/sfc: fix align to power of 2 when align has smaller type
[dpdk.git] / drivers / net / sfc / efsys.h
index 4c122d0..79fd3c1 100644 (file)
@@ -76,10 +76,6 @@ typedef bool boolean_t;
 #define IS_P2ALIGNED(v, a)     ((((uintptr_t)(v)) & ((uintptr_t)(a) - 1)) == 0)
 #endif
 
-#ifndef P2ALIGN
-#define P2ALIGN(_x, _a)                ((_x) & -(_a))
-#endif
-
 #ifndef ISP2
 #define ISP2(x)                        rte_is_power_of_2(x)
 #endif